]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: correctly restrict factor test without GMP
authorPádraig Brady <P@draigBrady.com>
Mon, 22 Oct 2012 12:03:27 +0000 (13:03 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 23 Oct 2012 12:03:08 +0000 (13:03 +0100)
* tests/misc/factor.pl: Correct the precedence and
regular expression in the command to check for GMP.

tests/misc/factor.pl

index 8f6edaac4a1576c9ddb83a8ea9c068787a6b318f..540984fe14b2b955a75324d78059be96a4aacb01 100755 (executable)
@@ -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'}],