Merge branch 'jc/lint-runaway-here-doc'
The test framework learned to detect unterminated here documents. * jc/lint-runaway-here-doc: tests: lint for run-away here-doc
This commit is contained in:
@ -625,9 +625,9 @@ test_run_ () {
|
|||||||
trace=
|
trace=
|
||||||
# 117 is magic because it is unlikely to match the exit
|
# 117 is magic because it is unlikely to match the exit
|
||||||
# code of other programs
|
# code of other programs
|
||||||
test_eval_ "(exit 117) && $1"
|
if test "OK-117" != "$(test_eval_ "(exit 117) && $1${LF}${LF}echo OK-\$?" 3>&1)"
|
||||||
if test "$?" != 117; then
|
then
|
||||||
error "bug in the test script: broken &&-chain: $1"
|
error "bug in the test script: broken &&-chain or run-away HERE-DOC: $1"
|
||||||
fi
|
fi
|
||||||
trace=$trace_tmp
|
trace=$trace_tmp
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user