]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Thu, 22 Jan 2015 14:56:41 +0000 (17:56 +0300)
committerJulien Pauli <jpauli@php.net>
Wed, 13 May 2015 13:34:17 +0000 (15:34 +0200)
ext/pcntl/tests/pcntl_wait.phpt
ext/pcntl/tests/pcntl_wait_rusage1.phpt
ext/pcntl/tests/pcntl_waitpid_rusage1.phpt

index c304c84316940e12976adfb0260d4e55a8164c57..d5ab709b764d18b271f9636ec83bda0804666183 100644 (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;
index 9e95f0020bfad5e0552311ac669795e1b2997c5a..6c9cd395400fa082260ca022e24a98d55805fc3c 100644 (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;
index b5c9aae3129127d1a6d8494ec0d4b9156a9f21a8..4ecc664bac2afecdd3ce648f1c2586fdfe06bf97 100644 (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;