This commit is contained in:
Eelco Dolstra 2010-02-24 13:13:39 +00:00
parent a3c63d0d6c
commit 21b134b4e5
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ source common.sh
clearStore
max=2500
max=500
reference=$NIX_STORE_DIR/abcdef
touch $reference
@ -22,11 +22,11 @@ done > $TEST_ROOT/reg_info
echo "registering..."
time $nixstore --register-validity < $TEST_ROOT/reg_info
$nixstore --register-validity < $TEST_ROOT/reg_info
echo "collecting garbage..."
ln -sfn $reference "$NIX_STATE_DIR"/gcroots/ref
time $nixstore --gc
$nixstore --gc
if test "$(sqlite3 ./test-tmp/db/db.sqlite 'select count(*) from Refs')" -ne 0; then
echo "referrers not cleaned up"