diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-php/symfony-finder/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-php/symfony-finder/files')
-rw-r--r-- | dev-php/symfony-finder/files/autoload.php | 8 | ||||
-rw-r--r-- | dev-php/symfony-finder/files/skip-file-time-sort-tests.patch | 24 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-php/symfony-finder/files/autoload.php b/dev-php/symfony-finder/files/autoload.php new file mode 100644 index 000000000000..f08b7856a720 --- /dev/null +++ b/dev-php/symfony-finder/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for symfony-finder and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Finder\\', __DIR__); diff --git a/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch b/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch new file mode 100644 index 000000000000..d0ee130b4e76 --- /dev/null +++ b/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch @@ -0,0 +1,24 @@ +There's one set of tests that tries to sort an array of files by their +access and modification times, and that doesn't work if your filesystem +is mounted with noatime (a lot of our users do that). + +This should probably be fixed upstream, and has been reported here: + + https://github.com/symfony/symfony/issues/17489 + +diff --git a/Tests/Iterator/SortableIteratorTest.php b/Tests/Iterator/SortableIteratorTest.php +index 4750f25..29d176a 100644 +--- a/Tests/Iterator/SortableIteratorTest.php ++++ b/Tests/Iterator/SortableIteratorTest.php +@@ -62,10 +62,7 @@ class SortableIteratorTest extends RealIteratorTestCase + || $mode === SortableIterator::SORT_BY_CHANGED_TIME + || $mode === SortableIterator::SORT_BY_MODIFIED_TIME + ) { +- if ('\\' === DIRECTORY_SEPARATOR && SortableIterator::SORT_BY_MODIFIED_TIME !== $mode) { +- $this->markTestSkipped('Sorting by atime or ctime is not supported on Windows'); +- } +- $this->assertOrderedIteratorForGroups($expected, $iterator); ++ $this->markTestSkipped('Sorting by time is failure-prone on Gentoo'); + } else { + $this->assertOrderedIterator($expected, $iterator); + } |