Changeset 224850 in webkit


Ignore:
Timestamp:
Nov 14, 2017 2:59:42 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Log moveFile failure errors
https://bugs.webkit.org/show_bug.cgi?id=179695

Reviewed by Brady Eidson.

Content extension tests are flaky. In r224790 I added logs to find out why, and they indicate that moveFile is failing.
To further understand why, I'm adding logs to see what's happening sometimes on the bots.

  • platform/cocoa/FileSystemCocoa.mm:

(WebCore::FileSystem::moveFile):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r224849 r224850  
     12017-11-14  Alex Christensen  <achristensen@webkit.org>
     2
     3        Log moveFile failure errors
     4        https://bugs.webkit.org/show_bug.cgi?id=179695
     5
     6        Reviewed by Brady Eidson.
     7
     8        Content extension tests are flaky. In r224790 I added logs to find out why, and they indicate that moveFile is failing.
     9        To further understand why, I'm adding logs to see what's happening sometimes on the bots.
     10
     11        * platform/cocoa/FileSystemCocoa.mm:
     12        (WebCore::FileSystem::moveFile):
     13
    1142017-11-14  Dean Jackson  <dino@apple.com>
    215
  • trunk/Source/WebCore/platform/cocoa/FileSystemCocoa.mm

    r224371 r224850  
    9090    [manager setDelegate:delegate.get()];
    9191   
    92     return [manager moveItemAtURL:[NSURL fileURLWithPath:oldPath] toURL:[NSURL fileURLWithPath:newPath] error:nil];
     92    NSError *error = nil;
     93    bool success = [manager moveItemAtURL:[NSURL fileURLWithPath:oldPath] toURL:[NSURL fileURLWithPath:newPath] error:&error];
     94    if (!success)
     95        NSLog(@"Error in moveFile: %@", error);
     96    return success;
    9397}
    9498
Note: See TracChangeset for help on using the changeset viewer.