Skip to content

Commit 3dc0b7f

Browse files
mjggitster
authored andcommitted
t3070: make chain lint tester happy
1f2e05f ("wildmatch: fix exponential behavior", 2023-03-20) introduced a new test with a background process. Backgrounding necessarily gives a result of 0, so that a seemingly broken && chain is not really broken. Adjust t3070 slightly so that our chain lint test recognizes the construct for what it is and does not raise a false positive. Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 91b81b6 commit 3dc0b7f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

t/t3070-wildmatch.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,12 @@ match 0 1 0 1 'z' '[Z-y]'
432432
match 1 1 1 1 'Z' '[Z-y]'
433433

434434
test_expect_success 'matching does not exhibit exponential behavior' '
435-
test-tool wildmatch wildmatch \
436-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab \
437-
"*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a" &
438-
pid=$! &&
435+
{
436+
test-tool wildmatch wildmatch \
437+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab \
438+
"*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a" &
439+
pid=$!
440+
} &&
439441
sleep 2 &&
440442
! kill $!
441443
'

0 commit comments

Comments
 (0)