mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Print unit test failures to dstream
This commit is contained in:
		@@ -59,7 +59,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
#define UTEST(x, fmt, ...)\
 | 
			
		||||
{\
 | 
			
		||||
	if(!(x)){\
 | 
			
		||||
		LOGLINEF(LMT_ERROR, "Test (%s) failed: " fmt, #x, ##__VA_ARGS__);\
 | 
			
		||||
		dstream << "Test (" #x ") failed: " fmt << std::endl; \
 | 
			
		||||
		test_failed = true;\
 | 
			
		||||
	}\
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user