summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-20 12:54:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-20 12:54:15 -0400
commitffa83efbb604ba2ed921e86bc6c837f6d605faa2 (patch)
treefc3cfe72923893af49e4652308e0a15a5ce60830 /tests
parent4a96b0d67d5d654ec1d5a3d447ceb07392fe87ec (diff)
downloadbfs-ffa83efbb604ba2ed921e86bc6c837f6d605faa2.tar.xz
Stop using %m
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tests.h b/tests/tests.h
index 19b7f5e..de95a49 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -9,6 +9,7 @@
#define BFS_TESTS_H
#include "prelude.h"
+#include "bfstd.h"
#include "diag.h"
/** Unit test function type. */
@@ -61,7 +62,7 @@ static inline bool bfs_check(bool ret) {
* Check a condition, logging the current error string on failure.
*/
#define bfs_echeck(...) \
- bfs_echeck_(#__VA_ARGS__, __VA_ARGS__, "", bfs_errstr())
+ bfs_echeck_(#__VA_ARGS__, __VA_ARGS__, "", errstr())
#define bfs_echeck_(str, cond, format, ...) \
((cond) ? true : (bfs_diag( \