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/t0010-racy-git.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 / t0010-racy-git.sh` 32 lines ยท 640 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='racy GIT' 4 5 . ./test-lib.sh 6 7 # This test can give false success if your machine is sufficiently 8 # slow or your trial happened to happen on second boundary. 9 10 for trial in 0 1 2 3 4 11 do 12 test_expect_success "Racy git trial #$trial part A" ' 13 rm -f .git/index && 14 echo frotz >infocom && 15 git update-index --add infocom && 16 echo xyzzy >infocom && 17 18 git diff-files -p >out && 19 test_file_not_empty out 20 ' 21 sleep 1 22 23 test_expect_success "Racy git trial #$trial part B" ' 24 echo xyzzy >cornerstone && 25 git update-index --add cornerstone && 26 27 git diff-files -p >out && 28 test_file_not_empty out 29 ' 30 done 31 32 test_done