1#!/bin/sh
2
3test_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
10for trial in 0 1 2 3 4 5 6 7 8 9
11do
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"'
22done
23
24test_done