Commit c474d02e authored by Chris Müller's avatar Chris Müller

lib: unittest could not catch coredumped processes. Use SIGSEGV signal for an...

lib: unittest could not catch coredumped processes. Use SIGSEGV signal for an indicator additionally.
parent 31040257
......@@ -260,7 +260,7 @@ update_statistics(int return_code)
{
if(return_code == SIGINT)
TimeoutNumber++;
else if(WCOREDUMP(return_code))
else if(WCOREDUMP(return_code) || return_code == SIGSEGV)
SegfaultNumber++;
else if(!WIFEXITED(return_code))
FailureNumber++;
......@@ -282,7 +282,7 @@ print_verbose_testprocess_status(const char* desc, int return_code, suseconds_t
printf(COLOR(Colors, CRY_RED, "TIMEOUT"));
} else if(WIFEXITED(return_code)) {
printf(COLOR(Colors, CRY_GREEN, "OK"));
} else if(WCOREDUMP(return_code)) {
} else if(WCOREDUMP(return_code) || return_code == SIGSEGV) {
printf(COLOR(Colors, CRY_RED, "SEGFAULT"));
} else {
printf(COLOR(Colors, CRY_RED, "FAIL (%d)"), return_code);
......@@ -300,7 +300,7 @@ print_testprocess_status(int return_code)
printf(COLOR(Colors, CRY_RED, "T"));
} else if(WIFEXITED(return_code)) {
printf(COLOR(Colors, CRY_GREEN, "."));
} else if(WCOREDUMP(return_code)) {
} else if(WCOREDUMP(return_code) || return_code == SIGSEGV) {
printf(COLOR(Colors, CRY_RED, "S"));
} else {
printf(COLOR(Colors, CRY_RED, "F"));
......
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