From: Christoph M. Becker Date: Wed, 8 Apr 2020 09:29:49 +0000 (+0200) Subject: Relax overly strict test expectation X-Git-Tag: php-7.4.7RC1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73a0719f45782f843d2bd15ea22410390bc2de94;p=php 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. --- diff --git a/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt b/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt index 9028b6902b..2b675a7f71 100644 --- a/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt +++ b/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt @@ -78,8 +78,7 @@ function get_evt_name(int $evt) : ?string --EXPECTF-- Started child %d Running `tasklist /FI "PID eq %d" /NH` to check the process indeed exists: -php.exe%w%d%s1%s +php.exe%w%d%s Sending CTRL+C to child %d Successfully sent CTRL+C to child %d Child %d exit with status 3 after %dus -