RESOLVED FIXED126769
[EFL][WK2] Make API tests work again
https://bugs.webkit.org/show_bug.cgi?id=126769
Summary [EFL][WK2] Make API tests work again
Sergio Correia (qrwteyrutiyoup)
Reported 2014-01-10 11:55:57 PST
[EFL][WK2] Make API tests work again
Attachments
Patch (7.62 KB, patch)
2014-01-10 11:58 PST, Sergio Correia (qrwteyrutiyoup)
no flags
v2 with Gyuyoung remakrs (7.52 KB, patch)
2014-01-12 18:00 PST, Sergio Correia (qrwteyrutiyoup)
no flags
Sergio Correia (qrwteyrutiyoup)
Comment 1 2014-01-10 11:56:53 PST
The EFL and WK2 test binaries are currently being generated at *TestWebKitAPI/ [E]WebKit2, respectively, and this causes problems because the logic to find where WebProcess is to look in the same directory of the running process and then proceed to use LIBEXECDIR (typically /usr/loca/bin). This patch introduces a WEBKIT_EXEC_PATH environment variable, inspired in the Gtk port, which allows us to look for WebProcess initially in this directory, if it's defined.
Sergio Correia (qrwteyrutiyoup)
Comment 2 2014-01-10 11:58:33 PST
Gyuyoung Kim
Comment 3 2014-01-11 03:07:11 PST
Comment on attachment 220870 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220870&action=review Looks make sense. Please land after fixing my comments. > Source/WebKit2/Shared/efl/ProcessExecutablePathEfl.cpp:44 > + executablePath = WebCore::pathByAppendingComponent(String(execDirectory), processName); String(execDirectory) -> String::fromUTF8(execDirectory) ? > Source/WebKit2/Shared/efl/ProcessExecutablePathEfl.cpp:59 > + executablePath = WebCore::pathByAppendingComponent(String(executablePathPtr), processName); ditto ? > Source/WebKit2/Shared/efl/ProcessExecutablePathEfl.cpp:66 > + LOG_ERROR("Failed to locate the path of '%s'.", processName); Don't you need to return nullptr ?
Sergio Correia (qrwteyrutiyoup)
Comment 4 2014-01-12 18:00:13 PST
Created attachment 220994 [details] v2 with Gyuyoung remakrs
Gyuyoung Kim
Comment 5 2014-01-12 19:36:44 PST
Comment on attachment 220994 [details] v2 with Gyuyoung remakrs LGTM.
Gyuyoung Kim
Comment 6 2014-01-12 19:37:26 PST
If you already got r+, then, you don't need to get r+ again.
WebKit Commit Bot
Comment 7 2014-01-12 20:11:19 PST
Comment on attachment 220994 [details] v2 with Gyuyoung remakrs Clearing flags on attachment: 220994 Committed r161857: <http://trac.webkit.org/changeset/161857>
WebKit Commit Bot
Comment 8 2014-01-12 20:11:23 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.