Skip to content

Commit d397fec

Browse files
authored
Skip xleak tests on asan (#11610)
Fixes GH-11077
1 parent 11aee73 commit d397fec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run-tests.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2477,7 +2477,10 @@ function run_test(string $php, $file, array $env): string
24772477
if ($test->hasSection('XLEAK')) {
24782478
$env['ZEND_ALLOC_PRINT_LEAKS'] = '0';
24792479
if (isset($env['SKIP_ASAN'])) {
2480-
$env['LSAN_OPTIONS'] = 'detect_leaks=0';
2480+
// $env['LSAN_OPTIONS'] = 'detect_leaks=0';
2481+
/* For unknown reasons, LSAN_OPTIONS=detect_leaks=0 would occasionally not be picked up
2482+
* in CI. Skip the test with ASAN, as it's not worth investegating. */
2483+
return skip_test($tested, $tested_file, $shortname, 'xleak does not work with asan');
24812484
}
24822485
}
24832486

0 commit comments

Comments
 (0)