Skip to content

Commit 2fa4e79

Browse files
tony2001Julien Pauli
authored andcommitted
fix tests
1 parent 5c02e7e commit 2fa4e79

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/pcntl/tests/pcntl_wait.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pcntl_wait()
66
--FILE--
77
<?php
88
$pid = pcntl_fork();
9-
if ($pid == 1) {
9+
if ($pid == -1) {
1010
die("failed");
1111
} else if ($pid) {
1212
$status = 0;

ext/pcntl/tests/pcntl_wait_rusage1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pcntl_wait() and rusage
66
--FILE--
77
<?php
88
$pid = pcntl_fork();
9-
if ($pid == 1) {
9+
if ($pid == -1) {
1010
die("failed");
1111
} else if ($pid) {
1212
$status = 0;

ext/pcntl/tests/pcntl_waitpid_rusage1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pcntl_waitpid() and rusage
66
--FILE--
77
<?php
88
$pid = pcntl_fork();
9-
if ($pid == 1) {
9+
if ($pid == -1) {
1010
die("failed");
1111
} else if ($pid) {
1212
$status = 0;

0 commit comments

Comments
 (0)