Skip to content

Commit 76f9087

Browse files
committed
xfail STATUS_BAD_FUNCTION_TABLE tests
These look related to php#15709, but apparently only fail with ASan instrumentation. Let's xfail these for now.
1 parent fe64579 commit 76f9087

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

Zend/tests/gh12073.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ GH-12073: Freeing of non-ZMM pointer of incompletely allocated closure
55
if (getenv("USE_ZEND_ALLOC") === "0" && getenv("USE_TRACKED_ALLOC") !== "1") {
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 && getenv('SKIP_ASAN')) {
13+
$url = "https://github.com/php/php-src/issues/15709";
14+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
15+
}
816
?>
917
--FILE--
1018
<?php

ext/standard/tests/gh14643_longname.phpt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
--TEST--
22
GH-14643: Segfault on empty user function.
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 && getenv('SKIP_ASAN')) {
10+
$url = "https://github.com/php/php-src/issues/15709";
11+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
12+
}
13+
?>
314
--FILE--
415
<?php
516
class Logger {

tests/basic/timeout_variation_0.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ Timeout within while loop
33
--SKIPIF--
44
<?php
55
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6+
$tracing = extension_loaded("Zend OPcache")
7+
&& ($conf = opcache_get_configuration()["directives"])
8+
&& array_key_exists("opcache.jit", $conf)
9+
&& $conf["opcache.jit"] === "tracing";
10+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing && getenv('SKIP_ASAN')) {
11+
$url = "https://github.com/php/php-src/issues/15709";
12+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
13+
}
614
?>
715
--FILE--
816
<?php

tests/basic/timeout_variation_7.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ Timeout within for loop
33
--SKIPIF--
44
<?php
55
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6+
$tracing = extension_loaded("Zend OPcache")
7+
&& ($conf = opcache_get_configuration()["directives"])
8+
&& array_key_exists("opcache.jit", $conf)
9+
&& $conf["opcache.jit"] === "tracing";
10+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing && getenv('SKIP_ASAN')) {
11+
$url = "https://github.com/php/php-src/issues/15709";
12+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
13+
}
614
?>
715
--FILE--
816
<?php

tests/func/005a.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ Testing register_shutdown_function() with timeout. (Bug: #21513)
33
--SKIPIF--
44
<?php
55
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6+
$tracing = extension_loaded("Zend OPcache")
7+
&& ($conf = opcache_get_configuration()["directives"])
8+
&& array_key_exists("opcache.jit", $conf)
9+
&& $conf["opcache.jit"] === "tracing";
10+
if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing && getenv('SKIP_ASAN')) {
11+
$url = "https://github.com/php/php-src/issues/15709";
12+
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
13+
}
614
?>
715
--FILE--
816
<?php

0 commit comments

Comments
 (0)