aboutsummaryrefslogtreecommitdiff
path: root/test/test_framework.hh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_framework.hh')
-rw-r--r--test/test_framework.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_framework.hh b/test/test_framework.hh
index 2af2da776..f0978814c 100644
--- a/test/test_framework.hh
+++ b/test/test_framework.hh
@@ -276,6 +276,16 @@ namespace test
} while (false)
/**
+ * Check that a is true, with a custom message.
+ */
+#define TEST_CHECK_MESSAGE(a, b) \
+ do { \
+ reached(__PRETTY_FUNCTION__, __FILE__, __LINE__); \
+ check(__PRETTY_FUNCTION__, __FILE__, __LINE__, a, \
+ b); \
+ } while (false)
+
+/**
* Check that a throws an exception of type b.
*/
#define TEST_CHECK_THROWS(a, b) \