mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Print unit test failures to dstream
This commit is contained in:
parent
9eb492229b
commit
5038b9aaec
@ -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;\
|
||||
}\
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user