[WTR][WPE] Correct the process names in TestController.
authorMs2ger@igalia.com <Ms2ger@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Feb 2018 18:16:20 +0000 (18:16 +0000)
committerMs2ger@igalia.com <Ms2ger@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Feb 2018 18:16:20 +0000 (18:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=178700

Reviewed by Michael Catanzaro.

Similar to r228731 for GTK.

* Scripts/webkitpy/port/wpe.py:
(WPEPort._get_crash_log): removed the code to convert WebProcess name.
* WebKitTestRunner/TestController.cpp: return the correct process names for WPE.
(WTR::TestController::webProcessName):
(WTR::TestController::networkProcessName):
(WTR::TestController::databaseProcessName):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228881 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/port/wpe.py
Tools/WebKitTestRunner/TestController.cpp

index 93d101d..65f80be 100644 (file)
@@ -1,5 +1,21 @@
 2018-02-21  Ms2ger  <Ms2ger@igalia.com>
 
+        [WTR][WPE] Correct the process names in TestController.
+        https://bugs.webkit.org/show_bug.cgi?id=178700
+
+        Reviewed by Michael Catanzaro.
+
+        Similar to r228731 for GTK.
+
+        * Scripts/webkitpy/port/wpe.py:
+        (WPEPort._get_crash_log): removed the code to convert WebProcess name.
+        * WebKitTestRunner/TestController.cpp: return the correct process names for WPE.
+        (WTR::TestController::webProcessName):
+        (WTR::TestController::networkProcessName):
+        (WTR::TestController::databaseProcessName):
+
+2018-02-21  Ms2ger  <Ms2ger@igalia.com>
+
         [ATK] Remove attributeSet variable from AccessibilityUIElement::attributedStringForRange().
         https://bugs.webkit.org/show_bug.cgi?id=183000
 
index 7803409..35a95d5 100644 (file)
@@ -105,5 +105,4 @@ class WPEPort(Port):
         return 2
 
     def _get_crash_log(self, name, pid, stdout, stderr, newer_than, target_host=None):
-        name = "WPEWebProcess" if name == "WebProcess" else name
         return GDBCrashLogGenerator(name, pid, newer_than, self._filesystem, self._path_to_driver).generate_crash_log(stdout, stderr)
index 9a81e33..ad1df82 100644 (file)
@@ -893,6 +893,8 @@ const char* TestController::webProcessName()
     return "com.apple.WebKit.WebContent.Development";
 #elif PLATFORM(GTK)
     return "WebKitWebProcess";
+#elif PLATFORM(WPE)
+    return "WPEWebProcess";
 #else
     return "WebProcess";
 #endif
@@ -907,6 +909,8 @@ const char* TestController::networkProcessName()
     return "com.apple.WebKit.Networking.Development";
 #elif PLATFORM(GTK)
     return "WebKitNetworkProcess";
+#elif PLATFORM(WPE)
+    return "WPENetworkProcess";
 #else
     return "NetworkProcess";
 #endif
@@ -925,6 +929,8 @@ const char* TestController::databaseProcessName()
     return "com.apple.WebKit.Storage.Development";
 #elif PLATFORM(GTK)
     return "WebKitStorageProcess";
+#elif PLATFORM(WPE)
+    return "WPEStorageProcess";
 #else
     return "DatabaseProcess";
 #endif