diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/tests/test_signals.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/tests/test_signals.cpp b/source/tests/test_signals.cpp index ab20c3e..0fc28d6 100644 --- a/source/tests/test_signals.cpp +++ b/source/tests/test_signals.cpp @@ -4,16 +4,19 @@ #include <cstdlib> #include <stdexcept> +// Signal handling don't work in MinGW +// +#ifndef __MINGW32__ TEST("c++ std::exception") { throw std::exception(); } // Can't handle multiple terminate signals on Windows -#if !defined(_WIN32) && !defined(__MINGW32__) +# ifndef _WIN32 TEST("abort") { abort(); } -#endif +# endif TEST("invalid access") { *(volatile int *) nullptr = 42; @@ -22,5 +25,10 @@ TEST("invalid access") { int main(int argc, char **argv) { return run_tests(argc, argv) ? 0 : 1; } +#endif +int main(int argc, char **argv) { + return 0; +} +#endif #undef KIT_TEST_FILE |