Changeset 161857 in webkit
- Timestamp:
- Jan 12, 2014 8:09:39 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r161772 r161857 1 2014-01-12 Sergio Correia <sergio.correia@openbossa.org> 2 3 [EFL][WK2] Make API tests work again 4 https://bugs.webkit.org/show_bug.cgi?id=126769 5 6 Reviewed by Gyuyoung Kim. 7 8 The EFL and WK2 test binaries are currently being generated at *TestWebKitAPI/ 9 [E]WebKit2, respectively, and this causes problems because the logic to find 10 where WebProcess is to look in the same directory of the running process and 11 then proceed to use LIBEXECDIR (typically /usr/loca/bin). 12 13 This patch introduces a WEBKIT_EXEC_PATH environment variable, inspired in the 14 Gtk port, which allows us to look for WebProcess initially in this directory, 15 if it's defined. 16 17 * Source/cmake/OptionsEfl.cmake: Define WEBKIT_EXEC_PATH, to be used by 18 [E]WebKit2 tests. 19 1 20 2014-01-11 Dan Bernstein <mitz@apple.com> 2 21 -
trunk/Source/WebKit2/ChangeLog
r161851 r161857 1 2014-01-12 Sergio Correia <sergio.correia@openbossa.org> 2 3 [EFL][WK2] Make API tests work again 4 https://bugs.webkit.org/show_bug.cgi?id=126769 5 6 Reviewed by Gyuyoung Kim. 7 8 The EFL and WK2 test binaries are currently being generated at *TestWebKitAPI/ 9 [E]WebKit2, respectively, and this causes problems because the logic to find 10 where WebProcess is to look in the same directory of the running process and 11 then proceed to use LIBEXECDIR (typically /usr/loca/bin). 12 13 This patch introduces a WEBKIT_EXEC_PATH environment variable, inspired in the 14 Gtk port, which allows us to look for WebProcess initially in this directory, 15 if it's defined. 16 17 * Shared/efl/ProcessExecutablePathEfl.cpp: 18 (WebKit::findProcessPath): Change the logic to look initially in 19 WEBKIT_EXEC_PATH, then proceed with the existing checks. 20 * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp: 21 (EWK2UnitTest::EWK2UnitTestEnvironment::EWK2UnitTestEnvironment): 22 Define WEBKIT_EXEC_PATH to be used by EWebKit2 tests. 23 1 24 2014-01-12 Darin Adler <darin@apple.com> 2 25 -
trunk/Source/WebKit2/Shared/efl/ProcessExecutablePathEfl.cpp
r155934 r161857 29 29 #include "FileSystem.h" 30 30 #include <libgen.h> 31 #include <sys/stat.h>32 #include <sys/types.h>33 31 #include <unistd.h> 34 32 #include <wtf/StdLibExtras.h> … … 37 35 namespace WebKit { 38 36 37 // We initially look for the process in WEBKIT_EXEC_PATH, then proceed to try the working 38 // directory of the running process, and finally we try LIBEXECDIR (usually /usr/local/bin). 39 39 static String findProcessPath(const char* processName) 40 40 { 41 String executablePath; 42 static const char* execDirectory = getenv("WEBKIT_EXEC_PATH"); 43 if (execDirectory) { 44 executablePath = WebCore::pathByAppendingComponent(String::fromUTF8(execDirectory), processName); 45 if (WebCore::fileExists(executablePath)) 46 return executablePath; 47 } 48 41 49 #if OS(UNIX) 42 50 char readLinkBuffer[PATH_MAX] = {0}; … … 49 57 if (result > 0) { 50 58 char* executablePathPtr = dirname(readLinkBuffer); 51 String executablePath = WebCore::pathByAppendingComponent(String(executablePathPtr), processName); 52 53 // Checks whether process exist on the current path. 54 struct stat fileStat; 55 if (!stat(executablePath.utf8().data(), &fileStat)) 59 executablePath = WebCore::pathByAppendingComponent(String::fromUTF8(executablePathPtr), processName); 60 if (WebCore::fileExists(executablePath)) 56 61 return executablePath; 57 62 } 58 63 #endif 59 60 return WebCore::pathByAppendingComponent(String(LIBEXECDIR), processName); 64 executablePath = WebCore::pathByAppendingComponent(String(LIBEXECDIR), processName); 65 ASSERT(WebCore::fileExists(executablePath)); 66 return executablePath; 61 67 } 62 68 -
trunk/Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp
r155163 r161857 31 31 , m_defaultHeight(600) 32 32 { 33 setenv("WEBKIT_EXEC_PATH", WEBKIT_EXEC_PATH, false); 33 34 } 34 35 -
trunk/Source/cmake/OptionsEfl.cmake
r161672 r161857 288 288 set(HAVE_LLVM ON) 289 289 endif () 290 291 # [E]WebKit2 tests need a hint to find out where processes such as WebProcess are located at. 292 add_definitions(-DWEBKIT_EXEC_PATH=\"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}\") -
trunk/Tools/ChangeLog
r161845 r161857 1 2014-01-12 Sergio Correia <sergio.correia@openbossa.org> 2 3 [EFL][WK2] Make API tests work again 4 https://bugs.webkit.org/show_bug.cgi?id=126769 5 6 Reviewed by Gyuyoung Kim. 7 8 The EFL and WK2 test binaries are currently being generated at *TestWebKitAPI/ 9 [E]WebKit2, respectively, and this causes problems because the logic to find 10 where WebProcess is to look in the same directory of the running process and 11 then proceed to use LIBEXECDIR (typically /usr/loca/bin). 12 13 This patch introduces a WEBKIT_EXEC_PATH environment variable, inspired in the 14 Gtk port, which allows us to look for WebProcess initially in this directory, 15 if it's defined. 16 17 * TestWebKitAPI/efl/main.cpp: 18 (main): Define WEBKIT_EXEC_PATH to be used by WebKit2 API tests. 19 1 20 2014-01-12 Daniel Bates <dabates@apple.com> 2 21 -
trunk/Tools/TestWebKitAPI/efl/main.cpp
r124327 r161857 51 51 { 52 52 WTFInstallReportBacktraceOnCrashHook(); 53 setenv("WEBKIT_EXEC_PATH", WEBKIT_EXEC_PATH, false); 53 54 54 55 if (!eina_init())
Note: See TracChangeset
for help on using the changeset viewer.