From acff091cad642edb35db53c6438f880b33de1c00 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 28 Apr 2012 18:49:53 +0000 Subject: [PATCH] fix windows unit test build --- test/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/main.cpp b/test/main.cpp index e47b84954..310923eb8 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -51,11 +51,15 @@ void sig_handler(int sig) { #define SIG(x) case x: sig_name = #x; break SIG(SIGSEGV); +#ifdef SIGBUS SIG(SIGBUS); +#endif SIG(SIGILL); SIG(SIGABRT); SIG(SIGFPE); +#ifdef SIGSYS SIG(SIGSYS); +#endif #undef SIG }; fprintf(stderr, "signal: %s caught:\n%s\n", sig_name, stack_text); @@ -75,11 +79,15 @@ int main() #endif signal(SIGSEGV, &sig_handler); +#ifdef SIGBUS signal(SIGBUS, &sig_handler); +#endif signal(SIGILL, &sig_handler); signal(SIGABRT, &sig_handler); signal(SIGFPE, &sig_handler); +#ifdef SIGSYS signal(SIGSYS, &sig_handler); +#endif #ifndef BOOST_NO_EXCEPTIONS try