Skip to content

Commit 2893137

Browse files
committed
Merge branch 'rs/t4062-obsd'
Test portability fix. * rs/t4062-obsd: t4062: use less than 256 repetitions in regex
2 parents 3717f91 + 4c7fda8 commit 2893137

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/t4062-diff-pickaxe.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ test_expect_success setup '
1414
test_tick &&
1515
git commit -m "A 4k file"
1616
'
17+
18+
# OpenBSD only supports up to 255 repetitions, so repeat twice for 64*64=4096.
1719
test_expect_success '-G matches' '
18-
git diff --name-only -G "^0{4096}$" HEAD^ >out &&
20+
git diff --name-only -G "^(0{64}){64}$" HEAD^ >out &&
1921
test 4096-zeroes.txt = "$(cat out)"
2022
'
2123

0 commit comments

Comments
 (0)