Skip to content

skip/xfail tests under ASan #17086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Zend/tests/gh12073.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ GH-12073: Freeing of non-ZMM pointer of incompletely allocated closure
if (getenv("USE_ZEND_ALLOC") === "0" && getenv("USE_TRACKED_ALLOC") !== "1") {
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 && getenv('SKIP_ASAN')) {
$url = "https://github.com/php/php-src/issues/15709";
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
}
?>
--FILE--
<?php
Expand Down
11 changes: 11 additions & 0 deletions ext/standard/tests/gh14643_longname.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
--TEST--
GH-14643: Segfault on empty user function.
--SKIPIF--
<?php
$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 && getenv('SKIP_ASAN')) {
$url = "https://github.com/php/php-src/issues/15709";
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
}
?>
--FILE--
<?php
class Logger {
Expand Down
1 change: 1 addition & 0 deletions sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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--
<?php
Expand Down
8 changes: 8 additions & 0 deletions tests/basic/timeout_variation_0.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ Timeout within while loop
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
$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 && getenv('SKIP_ASAN')) {
$url = "https://github.com/php/php-src/issues/15709";
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
}
?>
--FILE--
<?php
Expand Down
8 changes: 8 additions & 0 deletions tests/basic/timeout_variation_7.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ Timeout within for loop
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
$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 && getenv('SKIP_ASAN')) {
$url = "https://github.com/php/php-src/issues/15709";
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
}
?>
--FILE--
<?php
Expand Down
8 changes: 8 additions & 0 deletions tests/func/005a.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ Testing register_shutdown_function() with timeout. (Bug: #21513)
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
$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 && getenv('SKIP_ASAN')) {
$url = "https://github.com/php/php-src/issues/15709";
die("xfail Test fails on Windows x64 (VS17) and tracing JIT with ASan; see $url");
}
?>
--FILE--
<?php
Expand Down
Loading