mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
cbedb8aa21
commit
56673dbe8a
1 file changed
+3
-1
+3
-1
@@ -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}],
|
||||
|
||||
Reference in new issue
Block a user