[asan] De-flake one test.

This change replaces an in-test timeout with an unconditional blocking wait.
It speeds up normal execution significantly at the cost of hanging up indefinitely
in case of a failure. This is a very specific regression test and we don't
expect any failures in the future.

Another approach ould be increasing the timeout to ~8 seconds, which seems too
much for a lit test.

llvm-svn: 217870
This commit is contained in:
Evgeniy Stepanov 2014-09-16 12:03:52 +00:00
parent 6ef0106e43
commit 3905bb9150
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ void test() {
if (pid) {
// parent
__atomic_store_n(&done, 1, __ATOMIC_RELAXED);
usleep(1000000);
kill(pid, SIGKILL);
pid_t p;
while ((p = wait(NULL)) == -1) { }
} else {
// child
child();