about summary refs log tree commit diff
path: root/tests/gc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gc.sh')
-rw-r--r--tests/gc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gc.sh b/tests/gc.sh
index 9aeda43e7101..e45e35a8c9b6 100644
--- a/tests/gc.sh
+++ b/tests/gc.sh
@@ -2,7 +2,7 @@ storeExpr=$($TOP/src/nix-instantiate/nix-instantiate dependencies.nix)
 outPath=$($TOP/src/nix-store/nix-store -rvv "$storeExpr")
 
 # Set a GC root.
-ln -s $outPath "$NIX_LOCALSTATE_DIR"/nix/gcroots/foo
+ln -s $outPath "$NIX_STATE_DIR"/gcroots/foo
 
 $NIX_BIN_DIR/nix-collect-garbage