mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Make experimental capture work on Windows with read-write temp file behavior
This commit is contained in:
		 Travis Wilson
					Travis Wilson
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							fd9f5ac661
						
					
				
				
					commit
					a2e5ce2418
				
			| @@ -66,7 +66,7 @@ namespace Catch { | ||||
|         if (tmpnam_s(m_buffer)) { | ||||
|             CATCH_RUNTIME_ERROR("Could not get a temp filename"); | ||||
|         } | ||||
|         if (fopen_s(&m_file, m_buffer, "w")) { | ||||
|         if (fopen_s(&m_file, m_buffer, "w+")) { | ||||
|             char buffer[100]; | ||||
|             if (strerror_s(buffer, errno)) { | ||||
|                 CATCH_RUNTIME_ERROR("Could not translate errno to a string"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user