comparison 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
comparison
equal deleted inserted replaced
380:76b75fd84c72 381:fccbb45a2dae
115 int main() 115 int main()
116 { 116 {
117 dcTest_initPlatform(); 117 dcTest_initPlatform();
118 118
119 /* handle possible mem access errors */ 119 /* handle possible mem access errors */
120 signal(SIGBUS, segv_handler);
121 signal(SIGSEGV, segv_handler); 120 signal(SIGSEGV, segv_handler);
121 #if !defined(DC_WINDOWS)
122 signal(SIGBUS, segv_handler);
123 #endif
122 124
123 printf("Allocating ...\n"); 125 printf("Allocating ...\n");
124 printf("... W^X memory: "); 126 printf("... W^X memory: ");
125 test_wx(); 127 test_wx();
126 printf("... heap memory: "); 128 printf("... heap memory: ");