win32: fix building with NO_UNIX_SOCKETS
[alt-git.git] / t / t0010-racy-git.sh
blob84172a3739094adc6cdf6496b016fe68e0b2a771
1 #!/bin/sh
3 test_description='racy GIT'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
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" '
14 rm -f .git/index &&
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
22 sleep 1
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
31 done
33 test_done