diff options
Diffstat (limited to 'tests/misc/printenv.sh')
-rwxr-xr-x | tests/misc/printenv.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc/printenv.sh b/tests/misc/printenv.sh index e7dbbeef..054b02c2 100755 --- a/tests/misc/printenv.sh +++ b/tests/misc/printenv.sh @@ -1,7 +1,7 @@ #!/bin/sh # Verify behavior of printenv. -# Copyright (C) 2009-2013 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ fi # Printing a single variable's value. env -- printenv ENV_TEST > out test $? = 1 || fail=1 -test -s out && fail=1 +compare /dev/null out || fail=1 echo a > exp || framework_failure_ ENV_TEST=a env -- printenv ENV_TEST > out || fail=1 compare exp out || fail=1 @@ -76,6 +76,6 @@ compare exp out || fail=1 # Bug present through coreutils 8.0. env a=b=c printenv a=b > out test $? = 1 || fail=1 -test -s out && fail=1 +compare /dev/null out || fail=1 Exit $fail |