about summary refs log tree commit diff
path: root/tests/gc-concurrent2.builder.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-01-31T22·01+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-01-31T22·01+0000
commit89c9bc11abc02cc746838bfef101e5fecc59a6c5 (patch)
treeff3f905443476b0c41be7560851cd90b2823b8df /tests/gc-concurrent2.builder.sh
parent207bdcbe86bac5fb9e650d26b22ae33c667151e4 (diff)
* Add a test for a more subtle race: a process starting after the
  temporary root files have been read but creating outputs before the
  store directory has been read.

Diffstat (limited to 'tests/gc-concurrent2.builder.sh')
-rw-r--r--tests/gc-concurrent2.builder.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/gc-concurrent2.builder.sh b/tests/gc-concurrent2.builder.sh
new file mode 100644
index 000000000000..d94e4697182f
--- /dev/null
+++ b/tests/gc-concurrent2.builder.sh
@@ -0,0 +1,9 @@
+export PATH=/bin:/usr/bin:$PATH
+
+mkdir $out
+echo $(cat $input1/foo)$(cat $input2/bar)xyzzy > $out/foobar
+
+# Check that the GC hasn't deleted the lock on our output.
+test -e "$out.lock"
+
+sleep 3
\ No newline at end of file