From: Nikita Popov <nikita.ppv@gmail.com>
Date: Wed, 3 Jul 2019 09:01:59 +0000 (+0200)
Subject: Skip pcntl_sigwaitinfo() test under asan/msan
X-Git-Tag: php-7.4.0alpha3~58
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aff0b77d15ea1e4b9dbf9d80873990f601bf434c;p=php

Skip pcntl_sigwaitinfo() test under asan/msan

This test often fails under asan/msan with a timeout for unknown
reasons.
---

diff --git a/ext/pcntl/tests/002.phpt b/ext/pcntl/tests/002.phpt
index ce61b7b7fe..7d40735ae5 100644
--- a/ext/pcntl/tests/002.phpt
+++ b/ext/pcntl/tests/002.phpt
@@ -6,6 +6,7 @@ pcntl: pcntl_sigprocmask(), pcntl_sigwaitinfo(), pcntl_sigtimedwait()
 	elseif (!extension_loaded('posix')) die('skip posix extension not available');
 	elseif (!function_exists('pcntl_sigwaitinfo') or !function_exists('pcntl_sigtimedwait')) die('skip required functionality is not available');
 	elseif (!defined('CLD_EXITED')) die('skip CLD_EXITED not defined');
+	elseif (getenv('SKIP_ASAN')) die('skip Fails intermittently under asan/msan');
 ?>
 --FILE--
 <?php