Skip to content

Commit 6d59620

Browse files
authored
Dynamically xfail test cases which fail on CI (GH-15710)
This is a stop-gap measure for GH-15709 to keep CI green.
1 parent 2b8a1b4 commit 6d59620

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

Zend/tests/bug54268.phpt

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ $zend_mm_enabled = getenv("USE_ZEND_ALLOC");
88
if ($zend_mm_enabled === "0") {
99
die("skip Zend MM disabled");
1010
}
11+
$tracing = extension_loaded("Zend OPcache")
12+
&& ($conf = opcache_get_configuration()["directives"])
13+
&& array_key_exists("opcache.jit", $conf)
14+
&& $conf["opcache.jit"] === "tracing";
15+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) {
16+
$url = "https://github.com/php/php-src/issues/15709";
17+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url");
18+
}
1119
?>
1220
--FILE--
1321
<?php

Zend/tests/gh9407.phpt

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
--TEST--
22
GH-9407: LSP error in eval'd code refers to wrong class for static type
3+
--SKIPIF--
4+
<?php
5+
$tracing = extension_loaded("Zend OPcache")
6+
&& ($conf = opcache_get_configuration()["directives"])
7+
&& array_key_exists("opcache.jit", $conf)
8+
&& $conf["opcache.jit"] === "tracing";
9+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) {
10+
$url = "https://github.com/php/php-src/pull/14919#issuecomment-2259003979";
11+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url");
12+
}
13+
?>
314
--FILE--
415
<?php
516

Zend/tests/stack_limit/stack_limit_014.phpt

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Stack limit 014 - Fuzzer
44
<?php
55
if (!function_exists('zend_test_zend_call_stack_get')) die("skip zend_test_zend_call_stack_get() is not available");
66
if (getenv("SKIP_SLOW_TESTS")) die('skip slow test');
7+
$tracing = extension_loaded("Zend OPcache")
8+
&& ($conf = opcache_get_configuration()["directives"])
9+
&& array_key_exists("opcache.jit", $conf)
10+
&& $conf["opcache.jit"] === "tracing";
11+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) {
12+
$url = "https://github.com/php/php-src/pull/14919#issuecomment-2259003979";
13+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url");
14+
}
715
?>
816
--EXTENSIONS--
917
zend_test

ext/spl/tests/gh14639.phpt

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ memory_limit=2M
77
if (getenv("USE_ZEND_ALLOC") === "0") {
88
die("skip Zend MM disabled");
99
}
10+
$tracing = extension_loaded("Zend OPcache")
11+
&& ($conf = opcache_get_configuration()["directives"])
12+
&& array_key_exists("opcache.jit", $conf)
13+
&& $conf["opcache.jit"] === "tracing";
14+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) {
15+
$url = "https://github.com/php/php-src/pull/14919#issuecomment-2259003979";
16+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url");
17+
}
1018
?>
1119
--FILE--
1220
<?php

tests/lang/bug45392.phpt

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ Bug #45392 (ob_start()/ob_end_clean() and memory_limit)
55
if (getenv("USE_ZEND_ALLOC") === "0") {
66
die("skip Zend MM disabled");
77
}
8+
$tracing = extension_loaded("Zend OPcache")
9+
&& ($conf = opcache_get_configuration()["directives"])
10+
&& array_key_exists("opcache.jit", $conf)
11+
&& $conf["opcache.jit"] === "tracing";
12+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) {
13+
$url = "https://github.com/php/php-src/pull/14919#issuecomment-2259003979";
14+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url");
15+
}
816
?>
917
--FILE--
1018
<?php

0 commit comments

Comments
 (0)