From e48bd8c8b50e48db297e49fb325a94e854d6bdad Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Mar 2006 13:25:08 +0000 Subject: * Add a test for nix-log2xml. --- tests/gc-concurrent.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/gc-concurrent.sh') diff --git a/tests/gc-concurrent.sh b/tests/gc-concurrent.sh index 5004a6e4e270..446e79f138a6 100644 --- a/tests/gc-concurrent.sh +++ b/tests/gc-concurrent.sh @@ -6,7 +6,8 @@ outPath1=$($nixstore -q $drvPath1) drvPath2=$($nixinstantiate gc-concurrent2.nix) outPath2=$($nixstore -q $drvPath2) -ln -s $drvPath2 "$NIX_STATE_DIR"/gcroots/foo2 +rm -f "$NIX_STATE_DIR"/gcroots/foo +ln -s $drvPath2 "$NIX_STATE_DIR"/gcroots/foo # Start build #1 in the background. It starts immediately. $nixstore -rvv "$drvPath1" & @@ -35,3 +36,5 @@ cat $outPath1/input-2/bar # Build #2 should have failed because its derivation got garbage collected. cat $outPath2/foobar + +rm "$NIX_STATE_DIR"/gcroots/foo -- cgit 1.4.1