3 test_description
='racy GIT'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 # This test can give false success if your machine is sufficiently
9 # slow or your trial happened to happen on second boundary.
11 for trial
in 0 1 2 3 4
13 test_expect_success
"Racy git trial #$trial part A" '
15 echo frotz >infocom &&
16 git update-index --add infocom &&
17 echo xyzzy >infocom &&
19 git diff-files -p >out &&
20 test_file_not_empty out
24 test_expect_success
"Racy git trial #$trial part B" '
25 echo xyzzy >cornerstone &&
26 git update-index --add cornerstone &&
28 git diff-files -p >out &&
29 test_file_not_empty out