diff options
author | Felipe Pena <felipe@php.net> | 2011-06-24 19:18:06 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-06-24 19:18:06 +0000 |
commit | b632c3ac0686ceffa45489d5d229f7ff4a0a16e7 (patch) | |
tree | 40c1d051399da8e0a127162cbb2a332e0d81556d | |
parent | 09607226d4d418421119736f8137189efc4602ff (diff) | |
download | php-git-b632c3ac0686ceffa45489d5d229f7ff4a0a16e7.tar.gz |
- Added SKIPIF
-rw-r--r-- | ext/pcntl/tests/pcntl_exec.phpt | 5 | ||||
-rw-r--r-- | ext/pcntl/tests/pcntl_exec_2.phpt | 7 | ||||
-rw-r--r-- | ext/pcntl/tests/pcntl_exec_3.phpt | 2 | ||||
-rw-r--r-- | ext/pcntl/tests/pcntl_signal.phpt | 1 | ||||
-rw-r--r-- | ext/pcntl/tests/pcntl_wait.phpt | 2 |
5 files changed, 14 insertions, 3 deletions
diff --git a/ext/pcntl/tests/pcntl_exec.phpt b/ext/pcntl/tests/pcntl_exec.phpt index 756fc959c3..9d2ec1dcf5 100644 --- a/ext/pcntl/tests/pcntl_exec.phpt +++ b/ext/pcntl/tests/pcntl_exec.phpt @@ -1,7 +1,10 @@ --TEST-- pcntl_exec() --SKIPIF-- -<?php if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); ?> +<?php +if (!extension_loaded("pcntl")) print "skip"; +if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); +?> --FILE-- <?php echo "ok\n"; diff --git a/ext/pcntl/tests/pcntl_exec_2.phpt b/ext/pcntl/tests/pcntl_exec_2.phpt index d1672d2a30..02b5e22aa4 100644 --- a/ext/pcntl/tests/pcntl_exec_2.phpt +++ b/ext/pcntl/tests/pcntl_exec_2.phpt @@ -1,7 +1,12 @@ --TEST-- pcntl_exec() 2 --SKIPIF-- -<?php if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); ?> +<?php + +if (!extension_loaded("pcntl")) print "skip"; +if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); + +?> --FILE-- <?php if (getenv("PCNTL_EXEC_TEST_IS_CHILD")) { diff --git a/ext/pcntl/tests/pcntl_exec_3.phpt b/ext/pcntl/tests/pcntl_exec_3.phpt index 1017593b5f..d27c1c9962 100644 --- a/ext/pcntl/tests/pcntl_exec_3.phpt +++ b/ext/pcntl/tests/pcntl_exec_3.phpt @@ -1,5 +1,7 @@ --TEST-- pcntl_exec() 3 +--SKIPIF-- +<?php if (!extension_loaded("pcntl")) print "skip"; ?> --FILE-- <?php var_dump(pcntl_exec()); diff --git a/ext/pcntl/tests/pcntl_signal.phpt b/ext/pcntl/tests/pcntl_signal.phpt index efd4bba953..2db01305b5 100644 --- a/ext/pcntl/tests/pcntl_signal.phpt +++ b/ext/pcntl/tests/pcntl_signal.phpt @@ -1,6 +1,7 @@ --TEST-- pcntl_signal() --SKIPIF-- +<?php if (!extension_loaded("pcntl")) print "skip"; ?> <?php if (!extension_loaded("posix")) die("skip posix extension not available"); ?> --FILE-- <?php diff --git a/ext/pcntl/tests/pcntl_wait.phpt b/ext/pcntl/tests/pcntl_wait.phpt index 266bb399e5..c304c84316 100644 --- a/ext/pcntl/tests/pcntl_wait.phpt +++ b/ext/pcntl/tests/pcntl_wait.phpt @@ -1,8 +1,8 @@ --TEST-- pcntl_wait() --SKIPIF-- +<?php if (!extension_loaded("pcntl")) print "skip"; ?> <?php if (!extension_loaded("posix")) die("skip posix extension not available"); ?> -<?php --FILE-- <?php $pid = pcntl_fork(); |