]> granicus.if.org Git - php/commitdiff
Skip bug46024.phpt under asan
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 27 Oct 2020 09:33:59 +0000 (10:33 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 27 Oct 2020 09:35:12 +0000 (10:35 +0100)
There is a legitimate leak here, but I don't think it's worthwhile
to fix it. It involves a process terminated while printing phpinfo.

ext/standard/tests/streams/bug46024.phpt

index 145e66c1bd5ca93c55d054d1ed3b201b520937e0..5a712dcb6b92d6dc1f7911ff622e2b71320fe7bd 100644 (file)
@@ -1,7 +1,12 @@
 --TEST--
 Bug #46024 stream_select() doesn't return the correct number
 --SKIPIF--
-<?php if (!getenv('TEST_PHP_EXECUTABLE')) die("skip TEST_PHP_EXECUTABLE not defined"); ?>
+<?php
+if (!getenv('TEST_PHP_EXECUTABLE')) die("skip TEST_PHP_EXECUTABLE not defined");
+// Terminating the process may cause a bailout while writing out the phpinfo,
+// which may leak a temporary hash table. This does not seems worth fixing.
+if (getenv('SKIP_ASAN')) die("skip Test may leak");
+?>
 --FILE--
 <?php
 $php = realpath(getenv('TEST_PHP_EXECUTABLE'));