Changeset 283574 in webkit


Ignore:
Timestamp:
Oct 5, 2021 3:16:45 PM (3 years ago)
Author:
achristensen@apple.com
Message:

TestWebKitAPI.PrivateClickMeasurement.DaemonBasicFunctionality is timing out
https://bugs.webkit.org/show_bug.cgi?id=231257

  • TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm:

Originally reviewed as part of https://bugs.webkit.org/show_bug.cgi?id=231248
this should fix the error that happens when a previous test run has registered
the test AdAttributionDaemon but then failed before it was started, which leaves
launchd in a state of having already loaded a plist for the mach service named
"org.webkit.pcmtestdaemon.service" so it refuses to load another. The solution is
just to try unloading any previously loaded plist before loading another to clear
state in launchd.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r283563 r283574  
     12021-10-05  Alex Christensen  <achristensen@webkit.org>
     2
     3        TestWebKitAPI.PrivateClickMeasurement.DaemonBasicFunctionality is timing out
     4        https://bugs.webkit.org/show_bug.cgi?id=231257
     5
     6        * TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm:
     7        Originally reviewed as part of https://bugs.webkit.org/show_bug.cgi?id=231248
     8        this should fix the error that happens when a previous test run has registered
     9        the test AdAttributionDaemon but then failed before it was started, which leaves
     10        launchd in a state of having already loaded a plist for the mach service named
     11        "org.webkit.pcmtestdaemon.service" so it refuses to load another.  The solution is
     12        just to try unloading any previously loaded plist before loading another to clear
     13        state in launchd.
     14
    1152021-10-05  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm

    r283559 r283574  
    481481    success = [plist writeToURL:plistLocation error:&error];
    482482    EXPECT_TRUE(success);
     483    system([NSString stringWithFormat:@"launchctl unload %@ 2> /dev/null", plistLocation.path].fileSystemRepresentation);
    483484    system([NSString stringWithFormat:@"launchctl load %@", plistLocation.path].fileSystemRepresentation);
    484485#endif
Note: See TracChangeset for help on using the changeset viewer.