summaryrefslogtreecommitdiff
path: root/source/test/programs
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 16:22:47 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 16:22:47 +0400
commit7e38f1ae98de90942742e2093906172733415cc7 (patch)
treecab55c1fc8b82b399f38b210d48b04dba813fc28 /source/test/programs
parent08306c049ecdf43ff89f001df1b4a63ca6424006 (diff)
downloadkit-7e38f1ae98de90942742e2093906172733415cc7.zip
test
Diffstat (limited to 'source/test/programs')
-rw-r--r--source/test/programs/signals.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/test/programs/signals.c b/source/test/programs/signals.c
index add9e3d..c362021 100644
--- a/source/test/programs/signals.c
+++ b/source/test/programs/signals.c
@@ -3,11 +3,15 @@
#include <stdlib.h>
TEST("abort") {
- //abort();
+#if !defined(_WIN32) || defined(__CYGWIN__)
+ abort();
+#endif
}
TEST("invalid access") {
- //*(volatile int *) NULL = 42;
+#if !defined(_WIN32) || defined(__CYGWIN__)
+ *(volatile int *) NULL = 42;
+#endif
}
int main(int argc, char **argv) {