We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c473af7 + 99a64e4 commit 09fb535Copy full SHA for 09fb535
1 file changed
t/test-lib.sh
@@ -625,9 +625,9 @@ test_run_ () {
625
trace=
626
# 117 is magic because it is unlikely to match the exit
627
# code of other programs
628
- test_eval_ "(exit 117) && $1"
629
- if test "$?" != 117; then
630
- error "bug in the test script: broken &&-chain: $1"
+ if test "OK-117" != "$(test_eval_ "(exit 117) && $1${LF}${LF}echo OK-\$?" 3>&1)"
+ then
+ error "bug in the test script: broken &&-chain or run-away HERE-DOC: $1"
631
fi
632
trace=$trace_tmp
633
0 commit comments