Title: [287341] trunk/Tools
Revision
287341
Author
[email protected]
Date
2021-12-21 20:09:39 -0800 (Tue, 21 Dec 2021)

Log Message

Fix some API tests after r287316
https://bugs.webkit.org/show_bug.cgi?id=232857

I saw the test behavior difference on my Monterey arm64 Mac and assumed it was because it was Monterey,
but actually it's because it's an arm64 Mac.  Fix the test expectations.

* TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm:
(TestWebKitAPI::TEST):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (287340 => 287341)


--- trunk/Tools/ChangeLog	2021-12-22 03:25:57 UTC (rev 287340)
+++ trunk/Tools/ChangeLog	2021-12-22 04:09:39 UTC (rev 287341)
@@ -1,3 +1,14 @@
+2021-12-21  Alex Christensen  <[email protected]>
+
+        Fix some API tests after r287316
+        https://bugs.webkit.org/show_bug.cgi?id=232857
+
+        I saw the test behavior difference on my Monterey arm64 Mac and assumed it was because it was Monterey,
+        but actually it's because it's an arm64 Mac.  Fix the test expectations.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm:
+        (TestWebKitAPI::TEST):
+
 2021-12-21  Wenson Hsieh  <[email protected]>
 
         REGRESSION (12/21/2021): [iOS] TestWebKitAPI.WebKit.AddAndRemoveDataDetectors is consistently failing

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm (287340 => 287341)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm	2021-12-22 03:25:57 UTC (rev 287340)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm	2021-12-22 04:09:39 UTC (rev 287341)
@@ -237,7 +237,7 @@
         bool stringMatches = [nsMessage hasPrefix:@"[com.apple.WebKit.TestWebKitAPI"] || [nsMessage hasPrefix:@"[TestWebKitAPI"];
         stringMatches = stringMatches && [nsMessage hasSuffix:@" Turned Debug Mode on"];
         
-#if PLATFORM(MAC) && !USE(APPLE_INTERNAL_SDK) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000
+#if PLATFORM(MAC) && !USE(APPLE_INTERNAL_SDK) && CPU(x86_64)
         // ClientConnection::hostAppCodeSigningIdentifier returns an empty string,
         // so the string is more like "[(0x7f8f4bd083f0) (1 )] Turned Debug Mode on".
         // This is of no consequence, so just make the test pass.
@@ -334,7 +334,7 @@
     static bool originOperationDone = false;
     static RetainPtr<WKSecurityOrigin> origin;
     [dataStore _getOriginsWithPushAndNotificationPermissions:^(NSSet<WKSecurityOrigin *> *origins) {
-#if PLATFORM(MAC) && !USE(APPLE_INTERNAL_SDK) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000
+#if PLATFORM(MAC) && !USE(APPLE_INTERNAL_SDK) && CPU(x86_64)
         // ClientConnection::hostAppCodeSigningIdentifier returns an empty string,
         // so Daemon::canRegisterForNotifications returns false.
         // This is of no consequence, so just make the test pass.
@@ -348,7 +348,7 @@
 
     TestWebKitAPI::Util::run(&originOperationDone);
 
-#if !PLATFORM(MAC) || USE(APPLE_INTERNAL_SDK) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
+#if !PLATFORM(MAC) || USE(APPLE_INTERNAL_SDK) || !CPU(x86_64)
     EXPECT_WK_STREQ(origin.get().protocol, "testing");
     EXPECT_WK_STREQ(origin.get().host, "main");
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to