gentoo/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch
Thomas Deutschmann 73805a56d7
dev-php/symfony-finder: bump to v3.4.28
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
2019-07-18 15:01:23 +02:00

21 lines
1.0 KiB
Diff

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
--- a/Tests/Iterator/SortableIteratorTest.php
+++ b/Tests/Iterator/SortableIteratorTest.php
@@ -65,7 +65,8 @@ class SortableIteratorTest extends RealIteratorTestCase
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->assertOrderedIteratorForGroups($expected, $iterator);
+ $this->markTestSkipped('Sorting by time is failure-prone on Gentoo');
} else {
$this->assertOrderedIterator($expected, $iterator);
}