1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00

- Added SKIPIF

This commit is contained in:
Felipe Pena
2011-06-24 19:18:06 +00:00
parent 6c07bc8004
commit 10c20ceaf4
5 changed files with 14 additions and 3 deletions

View File

@@ -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";

View File

@@ -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")) {

View File

@@ -1,5 +1,7 @@
--TEST--
pcntl_exec() 3
--SKIPIF--
<?php if (!extension_loaded("pcntl")) print "skip"; ?>
--FILE--
<?php
var_dump(pcntl_exec());

View File

@@ -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

View File

@@ -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();