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:
parent
82c6fccacb
commit
a15520db8c
@ -515,5 +515,5 @@ catastrophic_failure(const char *filename,
|
||||
const char *message)
|
||||
{
|
||||
error_at_line(0, 0, filename, linenum, message);
|
||||
abort();
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ proc expect_pass { testname reg } {
|
||||
expect {
|
||||
-re "$reg" { pass "$testname" }
|
||||
default { fail "$testname" }
|
||||
timeout { fail "$testname" }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user