Skip to content

Commit 73a0719

Browse files
committed
Relax overly strict test expectation
There is no reason to expect a `1` after the PID; neither the session ID nor the memory usage are required to contain one. Actually, we just want to verify here, that the process with the $child_pid is running, and is a php.exe process.
1 parent c3ee9d1 commit 73a0719

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ function get_evt_name(int $evt) : ?string
7878
--EXPECTF--
7979
Started child %d
8080
Running `tasklist /FI "PID eq %d" /NH` to check the process indeed exists:
81-
php.exe%w%d%s1%s
81+
php.exe%w%d%s
8282
Sending CTRL+C to child %d
8383
Successfully sent CTRL+C to child %d
8484
Child %d exit with status 3 after %dus
85-

0 commit comments

Comments
 (0)