diff options
author | Antony Dovgal <tony2001@php.net> | 2015-01-22 17:56:41 +0300 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2015-05-13 15:34:17 +0200 |
commit | 2fa4e79e8a054d77e13d96a643a97a1a9c7e5679 (patch) | |
tree | a929bec0a435b599bae1d46a3a34c772e75375c5 /ext/pcntl | |
parent | 5c02e7e7fb2f7e9f959352bafd7bd8e1066dbec3 (diff) | |
download | php-git-2fa4e79e8a054d77e13d96a643a97a1a9c7e5679.tar.gz |
fix tests
Diffstat (limited to 'ext/pcntl')
-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; |