From a7cf0725d838499fc24db862ffaeac461685158a Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 29 Nov 2024 22:02:32 +0100 Subject: [PATCH] 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. --- sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt | 1 + 1 file changed, 1 insertion(+) diff --git a/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt b/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt index 3d93a827334..0faafc7908d 100644 --- a/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt +++ b/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt @@ -7,6 +7,7 @@ include "skipif.inc"; if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') die("skip this test is for Windows platforms only"); +if (getenv('SKIP_ASAN')) die('skip child process cannot be stopped under ASan'); ?> --FILE--