diff options
| author | Eric Blake <ebb9@byu.net> | 2009-10-23 15:35:41 -0600 |
|---|---|---|
| committer | Eric Blake <ebb9@byu.net> | 2009-10-23 16:24:02 -0600 |
| commit | 97777f559a80a0de11429402f7dba186eabf5bcd (patch) | |
| tree | f769ced785e2ad350ef4dcb9a915d88c4b3925eb | |
| parent | build: prohibit improper use of stat and lstat (diff) | |
| download | coreutils-97777f559a80a0de11429402f7dba186eabf5bcd.tar.gz coreutils-97777f559a80a0de11429402f7dba186eabf5bcd.zip | |
tests: accommodate BSD getopt
* tests/misc/invalid-opt (err_subst): Support alternate spelling.
| -rwxr-xr-x | tests/misc/invalid-opt | 3 |
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. |
