diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-07-02 13:55:52 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-07-02 19:15:08 +0100 |
commit | 970b89170206779e028fce6a28f0924c7e47bfd1 (patch) | |
tree | afe7f895a35fafb83a96681d675e2ca000d7298c /tests/du | |
parent | a645ce6c04719ad616ecd3bd7a16cd14772d6a74 (diff) | |
download | coreutils-970b89170206779e028fce6a28f0924c7e47bfd1.tar.xz |
tests: avoid false failures on OpenBSD 5.7
* tests/du/threshold.sh: Homogenize getopt error messages.
* tests/misc/numfmt.pl: Likewise.
* tests/mv/i-3.sh: Skip on *BSD not just FreeBSD.
Diffstat (limited to 'tests/du')
-rwxr-xr-x | tests/du/threshold.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/du/threshold.sh b/tests/du/threshold.sh index 4ce44982a..a4e488ae9 100755 --- a/tests/du/threshold.sh +++ b/tests/du/threshold.sh @@ -102,9 +102,11 @@ du --threshold= a > out 2>&1 && fail=1 compare exp out || fail=1 # Exercise a bad argument: no argument. -du --threshold > out 2>&1 && fail=1 +du --threshold > out.tmp 2>&1 && fail=1 +sed 's/argument.*/argument/; s/option.*requires/option requires/' \ + < out.tmp > out || framework_failure_ cat <<EOF > exp -du: option '--threshold' requires an argument +du: option requires an argument Try 'du --help' for more information. EOF compare exp out || fail=1 |