From: Pádraig Brady Date: Mon, 22 Oct 2012 12:03:27 +0000 (+0100) Subject: tests: correctly restrict factor test without GMP X-Git-Tag: v8.20~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15794eab5ac3e641661694e72a3065eef580b226;p=thirdparty%2Fcoreutils.git tests: correctly restrict factor test without GMP * tests/misc/factor.pl: Correct the precedence and regular expression in the command to check for GMP. --- diff --git a/tests/misc/factor.pl b/tests/misc/factor.pl index 8f6edaac4a..540984fe14 100755 --- a/tests/misc/factor.pl +++ b/tests/misc/factor.pl @@ -76,7 +76,7 @@ my @Tests = ); # If we have GMP support, append tests to exercise it. -system "grep -w HAVE_GMP $ENV{CONFIG_HEADER} > /dev/null" == 0 +(system "grep '^#define HAVE_GMP 1' $ENV{CONFIG_HEADER} > /dev/null") == 0 and push (@Tests, ['bug-gmp-2_sup_128', '340282366920938463463374607431768211456', {OUT => '2 'x127 . '2'}],