diff options
-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. |