summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-23 15:35:41 -0600
committerEric Blake <ebb9@byu.net>2009-10-23 16:24:02 -0600
commit97777f559a80a0de11429402f7dba186eabf5bcd (patch)
treef769ced785e2ad350ef4dcb9a915d88c4b3925eb /tests/misc
parentc0dcf3238bb9341c03bdb7f73c1af1b3898de557 (diff)
downloadcoreutils-97777f559a80a0de11429402f7dba186eabf5bcd.tar.xz
tests: accommodate BSD getopt
* tests/misc/invalid-opt (err_subst): Support alternate spelling.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/invalid-opt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/misc/invalid-opt b/tests/misc/invalid-opt
index d251cb891..23142bb0b 100755
--- a/tests/misc/invalid-opt
+++ b/tests/misc/invalid-opt
@@ -76,7 +76,8 @@ foreach my $prog (@built_programs)
# Accommodate different syntax in glibc's getopt
# diagnostics by filtering out single quotes.
- my $err_subst = "s,'/',/,";
+ # Also accommodate BSD getopt.
+ my $err_subst = "s,'/',/,; s,unknown,invalid,";
# Depending on how this script is run, stty emits different
# diagnostics. Don't bother checking them.