diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-06-10 10:08:15 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-06-10 10:08:15 +0000 |
commit | 997b95a4af9b70bc36c57a681c1637499c5ed18c (patch) | |
tree | ba567cce10615d52642880e2ccf0f58fb3374261 /tests/referrers.sh | |
parent | b0e92f6d474ce91d7f071f9ed62bbb2015009c58 (diff) | |
download | guix-997b95a4af9b70bc36c57a681c1637499c5ed18c.tar.gz |
* Fixed compatibility with old versions of "wc" that print whitespace
before the count.
Diffstat (limited to 'tests/referrers.sh')
-rw-r--r-- | tests/referrers.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/referrers.sh b/tests/referrers.sh index 2fdf0cf7c4..e3f8e07bc1 100644 --- a/tests/referrers.sh +++ b/tests/referrers.sh @@ -42,7 +42,7 @@ if test "$newTime" != "$oldTime"; then exit 1 fi -if test "$(cat test-tmp/db/referrer/1 | wc -w)" != 1; then +if test "$(cat test-tmp/db/referrer/1 | wc -w)" -ne 1; then echo "reregistration duplicated referrers" exit 1 fi @@ -51,7 +51,7 @@ echo "collecting garbage..." ln -sfn $reference "$NIX_STATE_DIR"/gcroots/ref time $nixstore --gc -if test "$(cat test-tmp/db/referrer/abcdef | wc -w)" != 0; then +if test "$(cat test-tmp/db/referrer/abcdef | wc -w)" -ne 0; then echo "referrers not cleaned up" exit 1 fi |