summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/meson.build1
-rw-r--r--test/test_thread.c9
2 files changed, 7 insertions, 3 deletions
diff --git a/test/meson.build b/test/meson.build
index 308b562..fbcaac9 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -48,7 +48,6 @@ if not meson.is_subproject() and get_option('lint')
'--enable=warning,style,performance,portability',
'--error-exitcode=1',
'--project=' + compdb_path,
- '--suppress=assertWithSideEffect',
'--suppress=constParameterCallback',
'--suppress=constParameterPointer',
'--suppress=constVariablePointer',
diff --git a/test/test_thread.c b/test/test_thread.c
index 8cfc9f4..09edde6 100644
--- a/test/test_thread.c
+++ b/test/test_thread.c
@@ -3,6 +3,7 @@
#undef NDEBUG
+#include "zix/status.h"
#include "zix/thread.h"
#include <assert.h>
@@ -32,8 +33,12 @@ main(int argc, char** argv)
SharedData data = {argc + (int)strlen(argv[0]), 0};
- assert(!zix_thread_create(&thread, 128, thread_func, &data));
- assert(!zix_thread_join(thread));
+ ZixStatus st = zix_thread_create(&thread, 128, thread_func, &data);
+ assert(!st);
+
+ st = zix_thread_join(thread);
+ assert(!st);
+
assert(data.output == data.input * 7);
return 0;