diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t0010-racy-git.sh | 33 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t1200-tutorial.sh | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t1300-repo-config.sh | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t3101-ls-tree-dirname.sh | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t4103-apply-binary.sh | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t4109-apply-multifrag.sh | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t4110-apply-scan.sh | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t5500-fetch-pack.sh | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | t/t6101-rev-parse-parents.sh | 0 | ||||
-rwxr-xr-x | t/test-lib.sh | 1 |
10 files changed, 34 insertions, 0 deletions
diff --git a/t/t0010-racy-git.sh b/t/t0010-racy-git.sh new file mode 100755 index 0000000000..e45a9e40e4 --- /dev/null +++ b/t/t0010-racy-git.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +test_description='racy GIT' + +. ./test-lib.sh + +# This test can give false success if your machine is sufficiently +# slow or your trial happened to happen on second boundary. + +for trial in 0 1 2 3 4 +do + rm -f .git/index + echo frotz >infocom + git update-index --add infocom + echo xyzzy >infocom + + files=`git diff-files -p` + test_expect_success \ + "Racy GIT trial #$trial part A" \ + 'test "" != "$files"' + + sleep 1 + echo xyzzy >cornerstone + git update-index --add cornerstone + + files=`git diff-files -p` + test_expect_success \ + "Racy GIT trial #$trial part B" \ + 'test "" != "$files"' + +done + +test_done diff --git a/t/t1200-tutorial.sh b/t/t1200-tutorial.sh index d7562e9748..d7562e9748 100644..100755 --- a/t/t1200-tutorial.sh +++ b/t/t1200-tutorial.sh diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 207dd3de64..207dd3de64 100644..100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh diff --git a/t/t3101-ls-tree-dirname.sh b/t/t3101-ls-tree-dirname.sh index d78deb1e71..d78deb1e71 100644..100755 --- a/t/t3101-ls-tree-dirname.sh +++ b/t/t3101-ls-tree-dirname.sh diff --git a/t/t4103-apply-binary.sh b/t/t4103-apply-binary.sh index 00bd8b15c6..00bd8b15c6 100644..100755 --- a/t/t4103-apply-binary.sh +++ b/t/t4103-apply-binary.sh diff --git a/t/t4109-apply-multifrag.sh b/t/t4109-apply-multifrag.sh index 5988e1ae4c..5988e1ae4c 100644..100755 --- a/t/t4109-apply-multifrag.sh +++ b/t/t4109-apply-multifrag.sh diff --git a/t/t4110-apply-scan.sh b/t/t4110-apply-scan.sh index 005f744816..005f744816 100644..100755 --- a/t/t4110-apply-scan.sh +++ b/t/t4110-apply-scan.sh diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh index 0781bd287e..0781bd287e 100644..100755 --- a/t/t5500-fetch-pack.sh +++ b/t/t5500-fetch-pack.sh diff --git a/t/t6101-rev-parse-parents.sh b/t/t6101-rev-parse-parents.sh index 1beab7197f..1beab7197f 100644..100755 --- a/t/t6101-rev-parse-parents.sh +++ b/t/t6101-rev-parse-parents.sh diff --git a/t/test-lib.sh b/t/test-lib.sh index 2819bef1c4..a97d259e26 100755 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -18,6 +18,7 @@ unset GIT_ALTERNATE_OBJECT_DIRECTORIES unset GIT_AUTHOR_DATE unset GIT_AUTHOR_EMAIL unset GIT_AUTHOR_NAME +unset GIT_COMMITTER_DATE unset GIT_COMMITTER_EMAIL unset GIT_COMMITTER_NAME unset GIT_DIFF_OPTS |