summaryrefslogtreecommitdiff
path: root/ext/pcntl/tests
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2015-01-22 17:56:41 +0300
committerJulien Pauli <jpauli@php.net>2015-05-13 15:34:17 +0200
commit2fa4e79e8a054d77e13d96a643a97a1a9c7e5679 (patch)
treea929bec0a435b599bae1d46a3a34c772e75375c5 /ext/pcntl/tests
parent5c02e7e7fb2f7e9f959352bafd7bd8e1066dbec3 (diff)
downloadphp-git-2fa4e79e8a054d77e13d96a643a97a1a9c7e5679.tar.gz
fix tests
Diffstat (limited to 'ext/pcntl/tests')
-rw-r--r--ext/pcntl/tests/pcntl_wait.phpt2
-rw-r--r--ext/pcntl/tests/pcntl_wait_rusage1.phpt2
-rw-r--r--ext/pcntl/tests/pcntl_waitpid_rusage1.phpt2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/pcntl/tests/pcntl_wait.phpt b/ext/pcntl/tests/pcntl_wait.phpt
index c304c84316..d5ab709b76 100644
--- a/ext/pcntl/tests/pcntl_wait.phpt
+++ b/ext/pcntl/tests/pcntl_wait.phpt
@@ -6,7 +6,7 @@ pcntl_wait()
--FILE--
<?php
$pid = pcntl_fork();
-if ($pid == 1) {
+if ($pid == -1) {
die("failed");
} else if ($pid) {
$status = 0;
diff --git a/ext/pcntl/tests/pcntl_wait_rusage1.phpt b/ext/pcntl/tests/pcntl_wait_rusage1.phpt
index 9e95f0020b..6c9cd39540 100644
--- a/ext/pcntl/tests/pcntl_wait_rusage1.phpt
+++ b/ext/pcntl/tests/pcntl_wait_rusage1.phpt
@@ -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;
diff --git a/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt b/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt
index b5c9aae312..4ecc664bac 100644
--- a/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt
+++ b/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt
@@ -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;