diff options
-rw-r--r-- | ext/pcntl/tests/pcntl_wait.phpt | 2 | ||||
-rw-r--r-- | ext/pcntl/tests/pcntl_wait_rusage1.phpt | 2 | ||||
-rw-r--r-- | ext/pcntl/tests/pcntl_waitpid_rusage1.phpt | 2 |
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; |