Racy GIT
[alt-git.git] / t / t0010-racy-git.sh
blobeb175b780f4f60574425a720fb3536ad4618a94c
1 #!/bin/sh
3 test_description='racy GIT'
5 . ./test-lib.sh
7 # This test can give false success if your machine is sufficiently
8 # slow or your trial happened to happen on second boundary.
10 for trial in 0 1 2 3 4 5 6 7 8 9
12 rm -f .git/index
13 echo frotz >infocom
14 echo xyzzy >activision
15 git update-index --add infocom activision
16 echo xyzzy >infocom
18 files=`git diff-files -p`
19 test_expect_success \
20 "Racy GIT trial #$trial" \
21 'test "" != "$files"'
22 done
24 test_done