Skip to content

Commit e544992

Browse files
committed
Skip tests under asan
When PDO firebird is loaded and these posix tests are run with parallelism, LeakSanitizer will occasionally segfault. I was not able to root cause this issue, as I failed to reproduce it in simpler circumstances. I don't think it's an issue on our side though.
1 parent 7daf2d8 commit e544992

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ext/posix/tests/posix_getgrgid_error.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Test posix_getgrgid() function : error conditions
33
--SKIPIF--
44
<?php
5-
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
5+
if(!extension_loaded("posix")) die("skip - POSIX extension not loaded");
6+
if (getenv('SKIP_ASAN')) die('skip LSan crashes when firebird is loaded');
67
?>
78
--FILE--
89
<?php

ext/posix/tests/posix_getpwuid_error.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Test posix_getpwuid() function : error conditions
33
--SKIPIF--
44
<?php
5-
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
5+
if(!extension_loaded("posix")) dir("skip - POSIX extension not loaded");
6+
if (getenv('SKIP_ASAN')) die('skip LSan crashes when firebird is loaded');
67
?>
78
--FILE--
89
<?php

0 commit comments

Comments
 (0)