Skip to content

Commit

Permalink
Merge branch 'PHP-8.3'
Browse files Browse the repository at this point in the history
* PHP-8.3:
  Mark some phar tests as flaky on macOS
  • Loading branch information
iluuu1994 committed Sep 13, 2024
2 parents f756b96 + 5b2d80b commit 5e7a1cc
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/phar/tests/033a.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ phar
--INI--
phar.readonly=1
phar.require_hash=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE--
<?php
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.1.phar.php';
Expand Down
6 changes: 6 additions & 0 deletions ext/phar/tests/phar_oo_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ phar
--INI--
phar.readonly=1
phar.require_hash=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE--
<?php

Expand Down
6 changes: 6 additions & 0 deletions ext/phar/tests/stat.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ phar
--INI--
phar.require_hash=1
phar.readonly=0
--SKIPIF--
<?php
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
die("flaky Occasionally segfaults on macOS for unknown reasons");
}
?>
--FILE--
<?php
umask(0);
Expand Down
6 changes: 6 additions & 0 deletions ext/phar/tests/tar/033a.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ phar
--INI--
phar.readonly=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--
<?php

Expand Down
6 changes: 6 additions & 0 deletions ext/phar/tests/zip/033a.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ phar
--INI--
phar.readonly=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--
<?php

Expand Down
3 changes: 3 additions & 0 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,9 @@ function run_test(string $php, $file, array $env): string
} elseif (!strncasecmp('xleak', $output, 5)) {
// Pretend we have an XLEAK section
$test->setSection('XLEAK', 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');
$PHP_FAILED_TESTS['BORKED'][] = [
Expand Down

0 comments on commit 5e7a1cc

Please sign in to comment.