Skip to content

Commit a7cf072

Browse files
committed
Skip sapi_windows_set_ctrl_handler.phpt under ASan
For some reason, terminating the child process by sending CTRL+C won't work under ASan instrumentation. Since termination via CTRL+BREAK works, there is apparently nothing fundamentally wrong, so we just skip the test. Closes GH-17086.
1 parent c630801 commit a7cf072

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include "skipif.inc";
77

88
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN')
99
die("skip this test is for Windows platforms only");
10+
if (getenv('SKIP_ASAN')) die('skip child process cannot be stopped under ASan');
1011
?>
1112
--FILE--
1213
<?php

0 commit comments

Comments
 (0)