summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-10-22 13:03:27 +0100
committerPádraig Brady <P@draigBrady.com>2012-10-23 13:03:08 +0100
commit15794eab5ac3e641661694e72a3065eef580b226 (patch)
treea2890e5d43289566960b8ba7316b5e69728cdaa8 /tests
parent0aeaa506ad9dd09479a298e4febe79b55c10a0e2 (diff)
downloadcoreutils-15794eab5ac3e641661694e72a3065eef580b226.tar.gz
coreutils-15794eab5ac3e641661694e72a3065eef580b226.tar.bz2
coreutils-15794eab5ac3e641661694e72a3065eef580b226.zip
tests: correctly restrict factor test without GMP
* tests/misc/factor.pl: Correct the precedence and regular expression in the command to check for GMP.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/factor.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/factor.pl b/tests/misc/factor.pl
index 8f6edaac4..540984fe1 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'}],