From 89c9bc11abc02cc746838bfef101e5fecc59a6c5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 31 Jan 2005 22:01:55 +0000 Subject: * 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. --- tests/gc-concurrent2.builder.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/gc-concurrent2.builder.sh (limited to 'tests/gc-concurrent2.builder.sh') 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 -- cgit 1.4.1