summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-01-08 11:17:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-01-08 11:37:36 +0100
commit7917cb12df8b4901264ed7294236a41283f93da7 (patch)
tree134235de45521ed2196396d6e8d0e30d0f9650b6 /tests
parent0abbefd94a12d0d0ad2932bc19ec90a75c6457e4 (diff)
doctest: Update to 2.4.4
Make ClassDB test macros enforce their msg to be constructed as String, since doctest 2.4.2 changes the message passing to vararg.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_class_db.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_class_db.h b/tests/test_class_db.h
index 11bf95ae28..faf6fe925e 100644
--- a/tests/test_class_db.h
+++ b/tests/test_class_db.h
@@ -42,10 +42,10 @@
#include "tests/test_macros.h"
-#define TEST_COND DOCTEST_CHECK_FALSE_MESSAGE
-#define TEST_FAIL DOCTEST_FAIL
-#define TEST_FAIL_COND DOCTEST_REQUIRE_FALSE_MESSAGE
-#define TEST_FAIL_COND_WARN DOCTEST_WARN_FALSE_MESSAGE
+#define TEST_COND(cond, msg) DOCTEST_CHECK_FALSE_MESSAGE(cond, String(msg))
+#define TEST_FAIL(cond, msg) DOCTEST_FAIL(cond, String(msg))
+#define TEST_FAIL_COND(cond, msg) DOCTEST_REQUIRE_FALSE_MESSAGE(cond, String(msg))
+#define TEST_FAIL_COND_WARN(cond, msg) DOCTEST_WARN_FALSE_MESSAGE(cond, String(msg))
namespace TestClassDB {