fix tests

This commit is contained in:
Antony Dovgal 2015-01-22 17:56:41 +03:00 committed by Julien Pauli
parent 5c02e7e7fb
commit 2fa4e79e8a
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ pcntl_wait()
--FILE--
<?php
$pid = pcntl_fork();
if ($pid == 1) {
if ($pid == -1) {
die("failed");
} else if ($pid) {
$status = 0;

View File

@ -6,7 +6,7 @@ pcntl_wait() and rusage
--FILE--
<?php
$pid = pcntl_fork();
if ($pid == 1) {
if ($pid == -1) {
die("failed");
} else if ($pid) {
$status = 0;

View File

@ -6,7 +6,7 @@ pcntl_waitpid() and rusage
--FILE--
<?php
$pid = pcntl_fork();
if ($pid == 1) {
if ($pid == -1) {
die("failed");
} else if ($pid) {
$status = 0;