ps abort causes problems in testsuite

Under certain circumstances, using abort() when either make check
or make distcheck puts ps into an infinite loop around the
function catastrophic_failure() in ps and the C library raise
and abort functions.

Using exit removes this problem and does almost the same thing.
This commit is contained in:
Craig Small 2012-03-03 11:49:48 +11:00
parent 82c6fccacb
commit a15520db8c
2 changed files with 2 additions and 1 deletions

View File

@ -515,5 +515,5 @@ catastrophic_failure(const char *filename,
const char *message)
{
error_at_line(0, 0, filename, linenum, message);
abort();
exit(EXIT_FAILURE);
}

View File

@ -40,6 +40,7 @@ proc expect_pass { testname reg } {
expect {
-re "$reg" { pass "$testname" }
default { fail "$testname" }
timeout { fail "$testname" }
}
}