eb175b780f4f60574425a720fb3536ad4618a94c
[git.git] / t / t0010-racy-git.sh
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 5 6 7 8 9
11 do
12         rm -f .git/index
13         echo frotz >infocom
14         echo xyzzy >activision
15         git update-index --add infocom activision
16         echo xyzzy >infocom
17
18         files=`git diff-files -p`
19         test_expect_success \
20         "Racy GIT trial #$trial" \
21         'test "" != "$files"'
22 done
23
24 test_done