From a2b4fa15255254291607f86a244ff5f1993e3363 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Fri, 13 Sep 2024 15:29:21 +0200 Subject: [PATCH 1/2] Mark flaky phar tests as xfail on macOS Fixes GH-15748 --- ext/phar/tests/033a.phpt | 2 ++ ext/phar/tests/phar_oo_002.phpt | 2 ++ ext/phar/tests/stat.phpt | 2 ++ ext/phar/tests/tar/033a.phpt | 2 ++ ext/phar/tests/zip/033a.phpt | 2 ++ 5 files changed, 10 insertions(+) diff --git a/ext/phar/tests/033a.phpt b/ext/phar/tests/033a.phpt index c36c5c6853985..9fb3f57bdd12b 100644 --- a/ext/phar/tests/033a.phpt +++ b/ext/phar/tests/033a.phpt @@ -5,6 +5,8 @@ phar --INI-- phar.readonly=1 phar.require_hash=0 +--SKIPIF-- + --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- Date: Fri, 13 Sep 2024 16:14:44 +0200 Subject: [PATCH 2/2] Use conditional FLAKY instead, and restrict to GA --- ext/phar/tests/033a.phpt | 6 +++++- ext/phar/tests/phar_oo_002.phpt | 6 +++++- ext/phar/tests/stat.phpt | 6 +++++- ext/phar/tests/tar/033a.phpt | 6 +++++- ext/phar/tests/zip/033a.phpt | 6 +++++- run-tests.php | 3 +++ 6 files changed, 28 insertions(+), 5 deletions(-) diff --git a/ext/phar/tests/033a.phpt b/ext/phar/tests/033a.phpt index 9fb3f57bdd12b..355617b29f93f 100644 --- a/ext/phar/tests/033a.phpt +++ b/ext/phar/tests/033a.phpt @@ -6,7 +6,11 @@ phar phar.readonly=1 phar.require_hash=0 --SKIPIF-- - + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- setSection('XFAIL', ltrim(substr($output, 5))); + } elseif (!strncasecmp('flaky', $output, 5)) { + // Pretend we have a FLAKY section + $test->setSection('FLAKY', ltrim(substr($output, 5))); } elseif ($output !== '') { show_result("BORK", $output, $tested_file, 'reason: invalid output from SKIPIF', $temp_filenames); $PHP_FAILED_TESTS['BORKED'][] = [