mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Print unit test failures to dstream
This commit is contained in:
parent
9eb492229b
commit
5038b9aaec
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#define UTEST(x, fmt, ...)\
|
#define UTEST(x, fmt, ...)\
|
||||||
{\
|
{\
|
||||||
if(!(x)){\
|
if(!(x)){\
|
||||||
LOGLINEF(LMT_ERROR, "Test (%s) failed: " fmt, #x, ##__VA_ARGS__);\
|
dstream << "Test (" #x ") failed: " fmt << std::endl; \
|
||||||
test_failed = true;\
|
test_failed = true;\
|
||||||
}\
|
}\
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue