Commit 2ba5af6d authored by Goswin von Brederlow's avatar Goswin von Brederlow

Set an alarm(60) in setup_test_environment() when not on windows so tests

will not block too long if they go wrong.
parent 77f5f7ad
...@@ -262,6 +262,9 @@ void setup_test_environment() ...@@ -262,6 +262,9 @@ void setup_test_environment()
_CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE ); _CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR ); _CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
# endif # endif
#else
// abort test after 60 seconds
alarm(60);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment