aboutsummaryrefslogtreecommitdiffstats
path: root/t/chainlint/sqstring-in-sqstring.test
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-07-17 10:47:24 -0700
committerJunio C Hamano <gitster@pobox.com>2024-07-17 10:47:25 -0700
commitb19a8c00c6e85245b1cd5c5ca2cfb7c58fb11452 (patch)
treea41f08c36bb8cf7e1f6826bf36ffc6a48d3d720f /t/chainlint/sqstring-in-sqstring.test
parent6da44da936d8256438aca9c7e027b7dc5e405b07 (diff)
parent55fe61559e8ef9e99274d9e649b0fac627a34ba9 (diff)
downloadgit-b19a8c00c6e85245b1cd5c5ca2cfb7c58fb11452.tar.gz
Merge branch 'jk/test-body-in-here-doc'
The test framework learned to take the test body not as a single string but as a here-document. * jk/test-body-in-here-doc: t/.gitattributes: ignore whitespace in chainlint expect files t: convert some here-doc test bodies test-lib: allow test snippets as here-docs chainlint.pl: add tests for test body in heredoc chainlint.pl: recognize test bodies defined via heredoc chainlint.pl: check line numbers in expected output chainlint.pl: force CRLF conversion when opening input files chainlint.pl: do not spawn more threads than we have scripts chainlint.pl: only start threads if jobs > 1 chainlint.pl: add test_expect_success call to test snippets
Diffstat (limited to 't/chainlint/sqstring-in-sqstring.test')
-rw-r--r--t/chainlint/sqstring-in-sqstring.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/chainlint/sqstring-in-sqstring.test b/t/chainlint/sqstring-in-sqstring.test
index 77a425e0c7..24169724a5 100644
--- a/t/chainlint/sqstring-in-sqstring.test
+++ b/t/chainlint/sqstring-in-sqstring.test
@@ -1,5 +1,7 @@
+test_expect_success 'sqstring-in-sqstring' '
# LINT: SQ-string Perl code fragment within SQ-string
perl -e '\''
defined($_ = -s $_) or die for @ARGV;
exit 1 if $ARGV[0] <= $ARGV[1];
'\'' test-2-$packname_2.pack test-3-$packname_3.pack
+'