]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Print unit test failures to dstream
authorkwolekr <kwolekr@minetest.net>
Mon, 29 Dec 2014 07:30:03 +0000 (02:30 -0500)
committerkwolekr <kwolekr@minetest.net>
Mon, 29 Dec 2014 07:30:03 +0000 (02:30 -0500)
src/test.cpp

index c30af0d1fbe5f6c730ca9267b38712439846c84c..4cf4460be9529509cb15171104a24beb3849b8af 100644 (file)
@@ -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;\
        }\
 }