Merge branch 'jk/ref-filter-colors-fix' into maint
[git/gitweb.git] / t / t3008-ls-files-lazy-init-name-hash.sh
blobbdf5198b7eff11f9a7bfb57239f5905d92fe4bf7
1 #!/bin/sh
3 test_description='Test the lazy init name hash with various folder structures'
5 . ./test-lib.sh
7 if test 1 -eq $($GIT_BUILD_DIR/t/helper/test-online-cpus)
8 then
9 skip_all='skipping lazy-init tests, single cpu'
10 test_done
13 LAZY_THREAD_COST=2000
15 test_expect_success 'no buffer overflow in lazy_init_name_hash' '
17 test_seq $LAZY_THREAD_COST | sed "s/^/a_/"
18 echo b/b/b
19 test_seq $LAZY_THREAD_COST | sed "s/^/c_/"
20 test_seq 50 | sed "s/^/d_/" | tr "\n" "/"; echo d
21 ) |
22 sed "s/^/100644 $EMPTY_BLOB /" |
23 git update-index --index-info &&
24 test-lazy-init-name-hash -m
27 test_done