From 97777f559a80a0de11429402f7dba186eabf5bcd Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 23 Oct 2009 15:35:41 -0600 Subject: tests: accommodate BSD getopt * tests/misc/invalid-opt (err_subst): Support alternate spelling. --- tests/misc/invalid-opt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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. -- cgit v1.2.3-70-g09d2