com php-src: Attempt to fix SKIP: sapi/cli/tests/bug64529.phpt
| From: | Xinchen Hui | Date: | Thu, 28 Mar 2013 15:22:20 +0000 |
| Subject: | com php-src: Attempt to fix SKIP: sapi/cli/tests/bug64529.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71791@lists.php.net to get a copy of this message | ||
Commit: ef93a93ee21bce9218188d3f037cf55c5d2ae452
Author: Xinchen Hui <laruence@php.net> Thu, 28 Mar 2013 23:22:20 +0800
Parents: 242d88c20c5eae36465e4cae2889917e949814da
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ef93a93ee21bce9218188d3f037cf55c5d2ae452
Log:
Attempt to fix SKIP
Changed paths:
M sapi/cli/tests/bug64529.phpt
Diff:
diff --git a/sapi/cli/tests/bug64529.phpt b/sapi/cli/tests/bug64529.phpt
index 2f0a962..7ca13a4 100644
--- a/sapi/cli/tests/bug64529.phpt
+++ b/sapi/cli/tests/bug64529.phpt
@@ -2,8 +2,13 @@
Bug #64529 (Ran out of opcode space)
--SKIPIF--
<?php
-if (substr(PHP_OS, 0, 3) == "WIN") die("skip non windows test");
-if (!trim(
which expect)) die "skip no expect installed";
+if (substr(PHP_OS, 0, 3) == "WIN") {
+ die("skip non windows test");
+}
+exec('which expect', $output, $ret);
+if ($ret) {
+ die "skip no expect installed";
+}
?>
--FILE--
<?php