diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-04 10:43:16 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-04 10:45:49 +0100 |
commit | e54499219ff87b3135032cf0e37cb5e86ecfb83d (patch) | |
tree | 2bd6debb01021ea0e3ed187b1d0e263287ff3067 /ext/posix | |
parent | 7daf2d8602091e4c59c502b2274f1b066b1ede67 (diff) | |
download | php-git-e54499219ff87b3135032cf0e37cb5e86ecfb83d.tar.gz |
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.
Diffstat (limited to 'ext/posix')
-rw-r--r-- | ext/posix/tests/posix_getgrgid_error.phpt | 3 | ||||
-rw-r--r-- | ext/posix/tests/posix_getpwuid_error.phpt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/posix/tests/posix_getgrgid_error.phpt b/ext/posix/tests/posix_getgrgid_error.phpt index 46314f9aa4..9b01abc350 100644 --- a/ext/posix/tests/posix_getgrgid_error.phpt +++ b/ext/posix/tests/posix_getgrgid_error.phpt @@ -2,7 +2,8 @@ Test posix_getgrgid() function : error conditions --SKIPIF-- <?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +if(!extension_loaded("posix")) die("skip - POSIX extension not loaded"); +if (getenv('SKIP_ASAN')) die('skip LSan crashes when firebird is loaded'); ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_getpwuid_error.phpt b/ext/posix/tests/posix_getpwuid_error.phpt index 15bd93b80d..9da73bd73e 100644 --- a/ext/posix/tests/posix_getpwuid_error.phpt +++ b/ext/posix/tests/posix_getpwuid_error.phpt @@ -2,7 +2,8 @@ Test posix_getpwuid() function : error conditions --SKIPIF-- <?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +if(!extension_loaded("posix")) dir("skip - POSIX extension not loaded"); +if (getenv('SKIP_ASAN')) die('skip LSan crashes when firebird is loaded'); ?> --FILE-- <?php |