⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 277315 in webkit


Ignore:
Timestamp:
May 10, 2021, 7:14:57 PM (5 years ago)
Author:
Chris Dumez
Message:

[ macOS Release wk2 ] http/tests/cache-storage/cache-records-persistency.https.html is flaky crashing
https://bugs.webkit.org/show_bug.cgi?id=225522
<rdar://problem/77680019>

Reviewed by Darin Adler.

Source/WTF:

Pass ec parameter to std::filesystem::directory_iterator() so that it doesn't throw in case of the
path does not exist. Normally, the function would return early earlier if the path does not exist
or isn't a directory. However, in the context of the test, this function is getting called on a
background thread and another thread is deleting the directory in parallel.

  • wtf/FileSystem.cpp:

(WTF::FileSystemImpl::deleteEmptyDirectory):

LayoutTests:

Restore previous expectation for the test, now that it is no longer flaky crashing.

  • platform/mac-wk2/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r277311 r277315  
     12021-05-10  Chris Dumez  <cdumez@apple.com>
     2
     3        [ macOS Release wk2 ] http/tests/cache-storage/cache-records-persistency.https.html is flaky crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=225522
     5        <rdar://problem/77680019>
     6
     7        Reviewed by Darin Adler.
     8
     9        Restore previous expectation for the test, now that it is no longer flaky crashing.
     10
     11        * platform/mac-wk2/TestExpectations:
     12
    1132021-05-10  Chris Gambrell  <cgambrell@apple.com>
    214
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r277303 r277315  
    13911391webkit.org/b/224784 [ BigSur Release arm64 ] imported/w3c/web-platform-tests/navigation-timing/test_performance_attributes.sub.html [ Pass Failure ]
    13921392
    1393 webkit.org/b/225522 [ Release ] http/tests/cache-storage/cache-records-persistency.https.html [ Pass Failure Crash ]
     1393webkit.org/b/207474 http/tests/cache-storage/cache-records-persistency.https.html [ Pass Failure ]
    13941394
    13951395webkit.org/b/225529 [ BigSur Release arm64 ] scrollingcoordinator/mac/fixed-backgrounds/fixed-background-in-overflow-in-iframe.html [ Pass Failure ]
  • trunk/Source/WTF/ChangeLog

    r277304 r277315  
     12021-05-10  Chris Dumez  <cdumez@apple.com>
     2
     3        [ macOS Release wk2 ] http/tests/cache-storage/cache-records-persistency.https.html is flaky crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=225522
     5        <rdar://problem/77680019>
     6
     7        Reviewed by Darin Adler.
     8
     9        Pass ec parameter to std::filesystem::directory_iterator() so that it doesn't throw in case of the
     10        path does not exist. Normally, the function would return early earlier if the path does not exist
     11        or isn't a directory. However, in the context of the test, this function is getting called on a
     12        background thread and another thread is deleting the directory in parallel.
     13
     14        * wtf/FileSystem.cpp:
     15        (WTF::FileSystemImpl::deleteEmptyDirectory):
     16
    1172021-05-10  Devin Rousso  <drousso@apple.com>
    218
  • trunk/Source/WTF/wtf/FileSystem.cpp

    r277231 r277315  
    563563#if PLATFORM(MAC)
    564564    bool containsSingleDSStoreFile = false;
    565     for (auto& entry : std::filesystem::directory_iterator(fsPath)) {
     565    for (auto& entry : std::filesystem::directory_iterator(fsPath, ec)) {
    566566        if (entry.path().filename() == ".DS_Store")
    567567            containsSingleDSStoreFile = true;
Note: See TracChangeset for help on using the changeset viewer.