diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-04-08 11:29:49 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-04-08 11:34:18 +0200 |
| commit | 73a0719f45782f843d2bd15ea22410390bc2de94 (patch) | |
| tree | 87ab7caa67d15238851edaf67853b42e10859382 | |
| parent | c3ee9d1bb7c6016663e4a55ae60afbb02f88a2e2 (diff) | |
| download | php-git-73a0719f45782f843d2bd15ea22410390bc2de94.tar.gz | |
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.
| -rw-r--r-- | sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt | 3 |
1 files changed, 1 insertions, 2 deletions
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 - |
