From 1183e08c533e61ddba32bd8d399f9e19d37def67 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 2 Sep 2024 12:45:58 +0200 Subject: [PATCH] Dynamically xfail test cases which fail on CI This is a stop-gap measure for GH-15709 to keep CI green. --- Zend/tests/bug54268.phpt | 8 ++++++++ Zend/tests/gh9407.phpt | 11 +++++++++++ Zend/tests/stack_limit/stack_limit_014.phpt | 8 ++++++++ ext/spl/tests/gh14639.phpt | 8 ++++++++ tests/lang/bug45392.phpt | 8 ++++++++ 5 files changed, 43 insertions(+) diff --git a/Zend/tests/bug54268.phpt b/Zend/tests/bug54268.phpt index 3567aaa6ee570..e0a1b8b1bc824 100644 --- a/Zend/tests/bug54268.phpt +++ b/Zend/tests/bug54268.phpt @@ -8,6 +8,14 @@ $zend_mm_enabled = getenv("USE_ZEND_ALLOC"); if ($zend_mm_enabled === "0") { die("skip Zend MM disabled"); } +$tracing = extension_loaded("Zend OPcache") + && ($conf = opcache_get_configuration()["directives"]) + && array_key_exists("opcache.jit", $conf) + && $conf["opcache.jit"] === "tracing"; +if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) { + $url = "https://github.com/php/php-src/issues/15709"; + die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url"); +} ?> --FILE-- --FILE-- --EXTENSIONS-- zend_test diff --git a/ext/spl/tests/gh14639.phpt b/ext/spl/tests/gh14639.phpt index 1b6f621d27bd3..520ee20839c28 100644 --- a/ext/spl/tests/gh14639.phpt +++ b/ext/spl/tests/gh14639.phpt @@ -7,6 +7,14 @@ memory_limit=2M if (getenv("USE_ZEND_ALLOC") === "0") { die("skip Zend MM disabled"); } +$tracing = extension_loaded("Zend OPcache") + && ($conf = opcache_get_configuration()["directives"]) + && array_key_exists("opcache.jit", $conf) + && $conf["opcache.jit"] === "tracing"; +if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) { + $url = "https://github.com/php/php-src/pull/14919#issuecomment-2259003979"; + die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url"); +} ?> --FILE-- --FILE--