summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-05-04 22:32:30 +0000
committerAntony Dovgal <tony2001@php.net>2007-05-04 22:32:30 +0000
commitdf6a0ca38d3aa7bae69829e9ebc68fe397ea40d0 (patch)
treecebe46e42ebedc9ac0973f9e705744698135a7e5
parentc40640626b570a5ba5184cf3c120de6425f20806 (diff)
downloadphp-git-df6a0ca38d3aa7bae69829e9ebc68fe397ea40d0.tar.gz
check GMP version and skip the test if it's <= 4.2.1
-rw-r--r--ext/gmp/tests/011.phpt8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/gmp/tests/011.phpt b/ext/gmp/tests/011.phpt
index b359b97b13..a4a23514b1 100644
--- a/ext/gmp/tests/011.phpt
+++ b/ext/gmp/tests/011.phpt
@@ -1,5 +1,11 @@
--TEST--
-gmp_divexact() tests (OK to fail with GMP =< 4.2.1)
+gmp_divexact() tests
+--SKIPIF--
+<?php
+if (!defined('GMP_VERSION') || version_compare("4.2.1", GMP_VERSION, ">=")) {
+ die("skip your GMP is too old and will crash");
+}
+?>
--FILE--
<?php