Skip to content

Commit 0d9ca9d

Browse files
committed
Only print what's needed for the safepoints test
(cherry picked from commit 36262c2)
1 parent d48121d commit 0d9ca9d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
#!/usr/bin/env bash
22

33
source test/truffle/common.sh.inc
4+
set +x
45

56
if out=$(jt ruby test/truffle/integration/safepoints/exit_when_blocked.rb 2>&1); then
67
echo "$out"
78
echo "The script succeeded when it was expected to fail"
89
exit 1
910
else
10-
# We do not want stacktraces of non-blocked threads
11-
echo "$out" | grep -v "SafepointManager.step" >/dev/null
1211
# Stacktrace of the blocked thread
13-
echo "$out" | grep "DeadBlockNode.deadBlock"
14-
echo "$out" | grep "terminating the process"
12+
if ! [[ "$out" == *"DeadBlockNode.deadBlock"* ]]; then
13+
echo "No DeadBlockNode.deadBlock"
14+
echo "$out"
15+
exit 1
16+
fi
17+
18+
if ! [[ "$out" == *"terminating the process"* ]]; then
19+
echo "No 'terminating the process'"
20+
echo "$out"
21+
exit 1
22+
fi
23+
24+
echo success
1525
fi

0 commit comments

Comments
 (0)