File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
source test/truffle/common.sh.inc
4
+ set +x
4
5
5
6
if out=$( jt ruby test/truffle/integration/safepoints/exit_when_blocked.rb 2>&1 ) ; then
6
7
echo " $out "
7
8
echo " The script succeeded when it was expected to fail"
8
9
exit 1
9
10
else
10
- # We do not want stacktraces of non-blocked threads
11
- echo " $out " | grep -v " SafepointManager.step" > /dev/null
12
11
# 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
15
25
fi
You can’t perform that action at this time.
0 commit comments