[libFuzzer] Ignore exit status of wait in merge-sigusr.test.
authorMatt Morehouse <mascasa@google.com>
Tue, 21 May 2019 22:48:40 +0000 (22:48 +0000)
committerMatt Morehouse <mascasa@google.com>
Tue, 21 May 2019 22:48:40 +0000 (22:48 +0000)
If process $PID has already exited, wait will give a non-zero exit
status.

llvm-svn: 361326

compiler-rt/test/fuzzer/merge-sigusr.test

index ee8a1467115a63f34a7e4f32b4496bb525a54697..fdeeacb7c0355e36b4465967b1f0798818a3d9c6 100644 (file)
@@ -27,7 +27,7 @@ RUN: %run %t/LFSIGUSR -merge=1 -merge_control_file=%t/MCF %t/C1 %t/C2 2>%t/log &
 RUN: sleep 3
 RUN: pkill -SIGUSR2 -P $PID
 RUN: kill -SIGUSR2 $PID
-RUN: wait $PID
+RUN: wait $PID || true
 RUN: cat %t/log | FileCheck %s --dump-input=fail
 RUN: grep C2/g %t/MCF
 RUN: grep STARTED %t/MCF