summaryrefslogtreecommitdiff
path: root/src/signalhandler_unittest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/signalhandler_unittest.sh')
-rwxr-xr-xsrc/signalhandler_unittest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signalhandler_unittest.sh b/src/signalhandler_unittest.sh
index 3b57b05..265cd45 100755
--- a/src/signalhandler_unittest.sh
+++ b/src/signalhandler_unittest.sh
@@ -111,7 +111,7 @@ done
# Test for a case the program dies in a non-main thread.
$BINARY die_in_thread 2> signalhandler.out3
-EXPECTED_TID="`sed 's/ .*//' signalhandler.out3`"
+EXPECTED_TID="`sed 's/ .*//; q' signalhandler.out3`"
for pattern in SIGFPE DieInThread "TID $EXPECTED_TID" "Aborted at [0-9]"; do
if ! grep --quiet "$pattern" signalhandler.out3; then