diff test/thunk/test_thunk.c @ 381:fccbb45a2dae

- test fix: no SIGBUS on windows platforms
author Tassilo Philipp
date Tue, 29 Dec 2020 13:30:59 +0100
parents 51af8ec8d8e6
children 268378d66610
line wrap: on
line diff
--- a/test/thunk/test_thunk.c	Tue Dec 29 11:25:40 2020 +0100
+++ b/test/thunk/test_thunk.c	Tue Dec 29 13:30:59 2020 +0100
@@ -117,8 +117,10 @@
   dcTest_initPlatform();
 
   /* handle possible mem access errors */
-  signal(SIGBUS,  segv_handler);
   signal(SIGSEGV, segv_handler);
+#if !defined(DC_WINDOWS)
+  signal(SIGBUS, segv_handler);
+#endif
 
   printf("Allocating ...\n");
   printf("... W^X memory: ");