mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
![]() The purpose of chainlint.sed is to detect &&-chain breakage only within subshells (one level deep); it doesn't bother checking for top-level &&-chain breakage since the &&-chain checker built into t/test-lib.sh should detect broken &&-chains outside of subshells by making them magically exit with code 117. Unfortunately, one of the chainlint.sed self-tests has overly intimate knowledge of this particular division of responsibilities and only cares about what chainlint.sed itself will produce, while ignoring the fact that a more all-encompassing linter would complain about a broken &&-chain outside the subshell. This makes it difficult to re-use the test with a more capable chainlint implementation should one ever be developed. Therefore, adjust the test and its "expected" output to avoid being specific to the tunnel-vision of this one implementation. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
arithmetic-expansion.expect | ||
arithmetic-expansion.test | ||
bash-array.expect | ||
bash-array.test | ||
blank-line.expect | ||
blank-line.test | ||
block.expect | ||
block.test | ||
broken-chain.expect | ||
broken-chain.test | ||
case.expect | ||
case.test | ||
close-nested-and-parent-together.expect | ||
close-nested-and-parent-together.test | ||
close-subshell.expect | ||
close-subshell.test | ||
command-substitution.expect | ||
command-substitution.test | ||
comment.expect | ||
comment.test | ||
complex-if-in-cuddled-loop.expect | ||
complex-if-in-cuddled-loop.test | ||
cuddled-if-then-else.expect | ||
cuddled-if-then-else.test | ||
cuddled-loop.expect | ||
cuddled-loop.test | ||
cuddled.expect | ||
cuddled.test | ||
exit-loop.expect | ||
exit-loop.test | ||
exit-subshell.expect | ||
exit-subshell.test | ||
for-loop.expect | ||
for-loop.test | ||
here-doc-close-subshell.expect | ||
here-doc-close-subshell.test | ||
here-doc-multi-line-command-subst.expect | ||
here-doc-multi-line-command-subst.test | ||
here-doc-multi-line-string.expect | ||
here-doc-multi-line-string.test | ||
here-doc.expect | ||
here-doc.test | ||
if-in-loop.expect | ||
if-in-loop.test | ||
if-then-else.expect | ||
if-then-else.test | ||
incomplete-line.expect | ||
incomplete-line.test | ||
inline-comment.expect | ||
inline-comment.test | ||
loop-in-if.expect | ||
loop-in-if.test | ||
multi-line-nested-command-substitution.expect | ||
multi-line-nested-command-substitution.test | ||
multi-line-string.expect | ||
multi-line-string.test | ||
negated-one-liner.expect | ||
negated-one-liner.test | ||
nested-cuddled-subshell.expect | ||
nested-cuddled-subshell.test | ||
nested-here-doc.expect | ||
nested-here-doc.test | ||
nested-subshell-comment.expect | ||
nested-subshell-comment.test | ||
nested-subshell.expect | ||
nested-subshell.test | ||
one-liner.expect | ||
one-liner.test | ||
p4-filespec.expect | ||
p4-filespec.test | ||
pipe.expect | ||
pipe.test | ||
semicolon.expect | ||
semicolon.test | ||
subshell-here-doc.expect | ||
subshell-here-doc.test | ||
subshell-one-liner.expect | ||
subshell-one-liner.test | ||
t7900-subtree.expect | ||
t7900-subtree.test | ||
while-loop.expect | ||
while-loop.test |