Backport flaky flag for phar tests

4e12189604
b6ca871396
062837aa13
This commit is contained in:
Ilija Tovilo 2024-09-13 15:29:21 +02:00
parent 39c292b1eb
commit 8a9d45b86f
No known key found for this signature in database
GPG key ID: 5050C66BFCD1015A
9 changed files with 49 additions and 1 deletions

View file

@ -5,6 +5,12 @@ phar
--INI-- --INI--
phar.readonly=1 phar.readonly=1
phar.require_hash=0 phar.require_hash=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE-- --FILE--
<?php <?php
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.1.phar.php'; $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.1.phar.php';

View file

@ -5,6 +5,12 @@ phar
--INI-- --INI--
phar.readonly=1 phar.readonly=1
phar.require_hash=0 phar.require_hash=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE-- --FILE--
<?php <?php

View file

@ -5,6 +5,12 @@ phar
--INI-- --INI--
phar.readonly=0 phar.readonly=0
phar.require_hash=0 phar.require_hash=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE-- --FILE--
<?php <?php
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.1.phar.php'; $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.1.phar.php';

View file

@ -5,6 +5,12 @@ phar
--INI-- --INI--
phar.require_hash=1 phar.require_hash=1
phar.readonly=0 phar.readonly=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE-- --FILE--
<?php <?php
umask(0); umask(0);

View file

@ -5,6 +5,12 @@ phar
--INI-- --INI--
phar.readonly=0 phar.readonly=0
phar.require_hash=0 phar.require_hash=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE-- --FILE--
<?php <?php

View file

@ -5,6 +5,12 @@ phar
--INI-- --INI--
phar.readonly=0 phar.readonly=0
phar.require_hash=0 phar.require_hash=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE-- --FILE--
<?php <?php

View file

@ -4,7 +4,10 @@ Test posix_getgrnam() function : basic functionality
posix posix
--SKIPIF-- --SKIPIF--
<?php <?php
if (!posix_getgroups()) die('skip - groups unavailable (ci)'); if (!posix_getgroups()) die('skip - groups unavailable (ci)');
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?> ?>
--FILE-- --FILE--
<?php <?php

View file

@ -2,6 +2,12 @@
Test posix_getgroups() function : basic functionality Test posix_getgroups() function : basic functionality
--EXTENSIONS-- --EXTENSIONS--
posix posix
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE-- --FILE--
<?php <?php
echo "Basic test of POSIX getgroups\n"; echo "Basic test of POSIX getgroups\n";

View file

@ -2240,6 +2240,9 @@ TEST $file
} elseif (!strncasecmp('xfail', $output, 5)) { } elseif (!strncasecmp('xfail', $output, 5)) {
// Pretend we have an XFAIL section // Pretend we have an XFAIL section
$test->setSection('XFAIL', ltrim(substr($output, 5))); $test->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 !== '') { } elseif ($output !== '') {
show_result("BORK", $output, $tested_file, 'reason: invalid output from SKIPIF', $temp_filenames); show_result("BORK", $output, $tested_file, 'reason: invalid output from SKIPIF', $temp_filenames);
$PHP_FAILED_TESTS['BORKED'][] = [ $PHP_FAILED_TESTS['BORKED'][] = [