Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Print unit test failures to dstream
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/test.cpp
|
@@ -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;\ |
|
|
}\ |
|
|
} |
|
|