summaryrefslogtreecommitdiff
path: root/ucoo/base
diff options
context:
space:
mode:
authorNicolas Schodet2015-06-22 14:28:30 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit7cb6dc7b4deb80cae5f55366973cb0697496bfa7 (patch)
tree647e6f3b871edff6a4b88f1afcf37775b2dafcef /ucoo/base
parentb8b771030310d57ff811c3028cb629c4ebdc0809 (diff)
ucoo/base/test: print failed condition as a string
Diffstat (limited to 'ucoo/base')
-rw-r--r--ucoo/base/test/test.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucoo/base/test/test.hh b/ucoo/base/test/test.hh
index fd8ac32..639fe27 100644
--- a/ucoo/base/test/test.hh
+++ b/ucoo/base/test/test.hh
@@ -28,7 +28,7 @@
/// Test helpers to fail and break to end of current block.
#define test_fail_break_unless(test, cond) \
({ if (!(cond)) { \
- test.fail (#cond); \
+ test.fail ("%s", #cond); \
break; \
} })