]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: accommodate BSD getopt
authorEric Blake <ebb9@byu.net>
Fri, 23 Oct 2009 21:35:41 +0000 (15:35 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 23 Oct 2009 22:24:02 +0000 (16:24 -0600)
* tests/misc/invalid-opt (err_subst): Support alternate spelling.

tests/misc/invalid-opt

index d251cb891647c3a4ba784c709ce28445625fd605..23142bb0b4e50ca989b58a5a267b7040689ea2b1 100755 (executable)
@@ -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.