Changeset 283298 in webkit


Ignore:
Timestamp:
Sep 29, 2021 10:00:57 PM (3 years ago)
Author:
achristensen@apple.com
Message:

Terminate PCM daemon before and after unit test that uses it
https://bugs.webkit.org/show_bug.cgi?id=230191

In r282368 I added a unit test that creates a daemon, uses it, then terminates it.
On some bots it has been timing out. Once it starts timing out, it probably won't stop because
it won't get to the part of the test that terminates the problematic daemon.

  • TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm:

(TestWebKitAPI::TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r283295 r283298  
     12021-09-29  Alex Christensen  <achristensen@webkit.org>
     2
     3        Terminate PCM daemon before and after unit test that uses it
     4        https://bugs.webkit.org/show_bug.cgi?id=230191
     5
     6        In r282368 I added a unit test that creates a daemon, uses it, then terminates it.
     7        On some bots it has been timing out.  Once it starts timing out, it probably won't stop because
     8        it won't get to the part of the test that terminates the problematic daemon.
     9
     10        * TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm:
     11        (TestWebKitAPI::TEST):
     12
    1132021-09-29  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm

    r283281 r283298  
    453453    EXPECT_NULL(error);
    454454
     455    system("killall AdAttributionDaemon -9 2> null");
     456
    455457    auto plist = testDaemonPList(tempDir);
    456458#if HAVE(OS_LAUNCHD_JOB)
     
    477479
    478480    system("killall AdAttributionDaemon -9");
    479 #if HAVE(OS_LAUNCHD_JOB)
    480     // LaunchOnlyOnce takes care of cleanup with launchd.
    481 #else
    482     system([NSString stringWithFormat:@"launchctl unload %@", plistLocation.path].UTF8String);
    483 #endif
    484481
    485482    EXPECT_TRUE([fileManager fileExistsAtPath:tempDir.path]);
Note: See TracChangeset for help on using the changeset viewer.