From 8a9d45b86f89bbaffa6e3f30eb8b75b39c509a1d Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Fri, 13 Sep 2024 15:29:21 +0200 Subject: [PATCH] Backport flaky flag for phar tests 4e12189604d76396f8c3b9d5dda6e8757f1d8618 b6ca871396328befca3f4e65a49a81b47cea1ced 062837aa13a72febf0fb14fd2b8afda338ee3f0a --- ext/phar/tests/033a.phpt | 6 ++++++ ext/phar/tests/phar_oo_002.phpt | 6 ++++++ ext/phar/tests/phar_oo_iswriteable.phpt | 6 ++++++ ext/phar/tests/stat.phpt | 6 ++++++ ext/phar/tests/tar/033a.phpt | 6 ++++++ ext/phar/tests/zip/033a.phpt | 6 ++++++ ext/posix/tests/posix_getgrnam_basic.phpt | 5 ++++- ext/posix/tests/posix_getgroups_basic.phpt | 6 ++++++ run-tests.php | 3 +++ 9 files changed, 49 insertions(+), 1 deletion(-) diff --git a/ext/phar/tests/033a.phpt b/ext/phar/tests/033a.phpt index c36c5c6853985..355617b29f93f 100644 --- a/ext/phar/tests/033a.phpt +++ b/ext/phar/tests/033a.phpt @@ -5,6 +5,12 @@ phar --INI-- phar.readonly=1 phar.require_hash=0 +--SKIPIF-- + --FILE-- --FILE-- --FILE-- --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'][] = [