mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* 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.
This commit is contained in:
parent
207bdcbe86
commit
89c9bc11ab
5 changed files with 85 additions and 20 deletions
9
tests/gc-concurrent2.builder.sh
Normal file
9
tests/gc-concurrent2.builder.sh
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue