com php-src: fix tests: ext/pcntl/tests/pcntl_wait.phpt e xt/pcntl/tests/pcntl_wait_rusage1.phpt ext/pcntl/test s/pcntl_waitpid_rusage1.phpt

From: Date: Wed, 13 May 2015 13:34:17 +0000
Subject: com php-src: fix tests: ext/pcntl/tests/pcntl_wait.phpt e xt/pcntl/tests/pcntl_wait_rusage1.phpt ext/pcntl/test s/pcntl_waitpid_rusage1.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86744@lists.php.net to get a copy of this message
Commit: 2fa4e79e8a054d77e13d96a643a97a1a9c7e5679 Author: Antony Dovgal <tony2001@php.net> Thu, 22 Jan 2015 17:56:41 +0300 Committer: Julien Pauli <jpauli@php.net> Wed, 13 May 2015 15:34:17 +0200 Parents: 5c02e7e7fb2f7e9f959352bafd7bd8e1066dbec3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2fa4e79e8a054d77e13d96a643a97a1a9c7e5679 Log: fix tests Changed paths: M ext/pcntl/tests/pcntl_wait.phpt M ext/pcntl/tests/pcntl_wait_rusage1.phpt M ext/pcntl/tests/pcntl_waitpid_rusage1.phpt Diff: diff --git a/ext/pcntl/tests/pcntl_wait.phpt b/ext/pcntl/tests/pcntl_wait.phpt index c304c84..d5ab709 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 9e95f00..6c9cd39 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 b5c9aae..4ecc664 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;

« previous php.cvs (#86744) next »