summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-03-17 17:05:41 +0100
committerJim Meyering <meyering@redhat.com>2012-03-20 17:34:28 +0100
commit56673dbe8af479419f4df56fc8b883fb08012604 (patch)
treef933ebbabbdad8ea3cfaa6f30fa7fa02f8674b50
parentcbedb8aa213a12310465131a8925c71f4cc8431d (diff)
downloadcoreutils-56673dbe8af479419f4df56fc8b883fb08012604.tar.xz
tests: avoid spurious misc/factor failure on OpenBSD 5.1
* tests/misc/factor: Map OpenBSD 5.1's "unknown option" to our expected "invalid option". Reported by Bruno Haible.
-rwxr-xr-xtests/misc/factor4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/misc/factor b/tests/misc/factor
index fffd50bc7..47f934309 100755
--- a/tests/misc/factor
+++ b/tests/misc/factor
@@ -57,7 +57,9 @@ my @Tests =
['x', '4294966896', {OUT => '2 2 2 2 3 3 3 11 607 1489'}],
['y', '4294966998', {OUT => '2 3 7 3917 26107'}],
['z', '-1',
- {ERR_SUBST => q!s/'1'/1/!}, # map newer glibc diagnostic to expected.
+ # Map newer glibc diagnostic to expected.
+ # Also map OpenBSD 5.1's "unknown option" to expected "invalid option".
+ {ERR_SUBST => q!s/'1'/1/;s/unknown/invalid/!},
{ERR => "$prog: invalid option -- 1\n"
. "Try '$prog --help' for more information.\n"},
{EXIT => 1}],