summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2024-02-19 13:04:34 +0100
committerSander Vrijders <sander@ouroboros.rocks>2024-02-19 14:10:46 +0100
commitd2556ebc3fbc59736863e53f5b2c35e72eb09ae8 (patch)
treebed5903f1ccae4e974d61b38a32ca5eaad28b4d0 /include
parent52f4d6f7b72de7308b4200b5c4b6c3ccddf617a3 (diff)
downloadouroboros-0.21.0.tar.gz
ouroboros-0.21.0.zip
include: Fix wstatus check for assertion tests0.21.0
The macro checks tests for exit code 134 (interrupted by SIGABRT) but not for exit code 6. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ouroboros/test.h b/include/ouroboros/test.h
index 6e32579f..a88b5548 100644
--- a/include/ouroboros/test.h
+++ b/include/ouroboros/test.h
@@ -62,7 +62,7 @@ static int __attribute__((unused)) test_assert_fail(int(* testfunc)(void))
waitpid(pid, &wstatus, 0);
#ifdef CONFIG_OUROBOROS_DEBUG
- if (WIFSIGNALED(wstatus) && wstatus == 134)
+ if (WIFSIGNALED(wstatus) && (wstatus == 134 || wstatus == 6))
return 0;
printf("Process did not abort, status: %d.\n", wstatus);