From: Jim Meyering Date: Fri, 28 Mar 2008 23:11:15 +0000 (+0100) Subject: Work around a recent glibc/getopt.c diagnostic change. X-Git-Tag: v6.11~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76576ba2f5e270bfb78e46604392d0258bbf6320;p=thirdparty%2Fcoreutils.git Work around a recent glibc/getopt.c diagnostic change. * tests/misc/factor: Map new "-- '1'" to expected "-- 1". Signed-off-by: Jim Meyering --- diff --git a/tests/misc/factor b/tests/misc/factor index a350ca9e36..de3f376a21 100755 --- a/tests/misc/factor +++ b/tests/misc/factor @@ -65,6 +65,7 @@ my @Tests = ['x', '4294966896', {OUT => '2 2 2 2 3 3 3 11 607 1489'}], ['y', '4294966998', {OUT => '2 3 7 3917 26107'}], ['z', '-1', + {ERR_SUBST => q!s/'1'/1/!}, # map newer glibc diagnostic to expected. {ERR => "$prog: invalid option -- 1\n" . "Try `$prog --help' for more information.\n"}, {EXIT => 1}],