Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t3008-ls-files-lazy-init-name-hash.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t3008-ls-files-lazy-init-name-hash.sh` 27 lines ยท 606 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='Test the lazy init name hash with various folder structures' 4 5 . ./test-lib.sh 6 7 if test 1 -eq $(test-tool online-cpus) 8 then 9 skip_all='skipping lazy-init tests, single cpu' 10 test_done 11 fi 12 13 LAZY_THREAD_COST=2000 14 15 test_expect_success 'no buffer overflow in lazy_init_name_hash' ' 16 ( 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-tool lazy-init-name-hash -m 25 ' 26 27 test_done