aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rwxr-xr-xt/t0010-racy-git.sh33
-rwxr-xr-x[-rw-r--r--]t/t1200-tutorial.sh0
-rwxr-xr-x[-rw-r--r--]t/t1300-repo-config.sh0
-rwxr-xr-x[-rw-r--r--]t/t3101-ls-tree-dirname.sh0
-rwxr-xr-x[-rw-r--r--]t/t4103-apply-binary.sh0
-rwxr-xr-x[-rw-r--r--]t/t4109-apply-multifrag.sh0
-rwxr-xr-x[-rw-r--r--]t/t4110-apply-scan.sh0
-rwxr-xr-x[-rw-r--r--]t/t5500-fetch-pack.sh0
-rwxr-xr-x[-rw-r--r--]t/t6101-rev-parse-parents.sh0
-rwxr-xr-xt/test-lib.sh1
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 000000000..e45a9e40e
--- /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 d7562e974..d7562e974 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 207dd3de6..207dd3de6 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 d78deb1e7..d78deb1e7 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 00bd8b15c..00bd8b15c 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 5988e1ae4..5988e1ae4 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 005f74481..005f74481 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 0781bd287..0781bd287 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 1beab7197..1beab7197 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 2819bef1c..a97d259e2 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