diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-12 09:27:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-12 09:27:39 +0200 |
commit | 3749d61e1f7a59f5ec5067e560af1eb610c82015 (patch) | |
tree | 73dc228333948738bbe02976cacca8cd382bc978 /Tools/DumpRenderTree/chromium/TestShellAndroid.cpp | |
parent | b32b4dcd9a51ab8de6afc53d9e17f8707e1f7a5e (diff) | |
download | qtwebkit-3749d61e1f7a59f5ec5067e560af1eb610c82015.tar.gz |
Imported WebKit commit a77350243e054f3460d1137301d8b3faee3d2052 (http://svn.webkit.org/repository/webkit/trunk@125365)
New snapshot with build fixes for latest API changes in Qt and all WK1 Win MSVC fixes upstream
Diffstat (limited to 'Tools/DumpRenderTree/chromium/TestShellAndroid.cpp')
-rw-r--r-- | Tools/DumpRenderTree/chromium/TestShellAndroid.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Tools/DumpRenderTree/chromium/TestShellAndroid.cpp b/Tools/DumpRenderTree/chromium/TestShellAndroid.cpp index 5f04fff5b..188158440 100644 --- a/Tools/DumpRenderTree/chromium/TestShellAndroid.cpp +++ b/Tools/DumpRenderTree/chromium/TestShellAndroid.cpp @@ -44,9 +44,12 @@ namespace { -const char fontMainConfigFile[] = "/data/drt/android_main_fonts.xml"; -const char fontFallbackConfigFile[] = "/data/drt/android_fallback_fonts.xml"; -const char fontsDir[] = "/data/drt/fonts/"; +// Must be same as DEVICE_DRT_DIR in Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py. +#define DEVICE_DRT_DIR "/data/local/tmp/drt/" + +const char fontMainConfigFile[] = DEVICE_DRT_DIR "android_main_fonts.xml"; +const char fontFallbackConfigFile[] = DEVICE_DRT_DIR "android_fallback_fonts.xml"; +const char fontsDir[] = DEVICE_DRT_DIR "fonts/"; const char optionInFIFO[] = "--in-fifo="; const char optionOutFIFO[] = "--out-fifo="; @@ -72,7 +75,9 @@ void removeArg(int index, int* argc, char*** argv) void createFIFO(const char* fifoPath) { unlink(fifoPath); - if (mkfifo(fifoPath, 0600)) { + // 0666 is rw-rw-rw-, to allow adb shell to read/write the fifo. + // Explicitly call chmod to ensure the mode is set despite umask. + if (mkfifo(fifoPath, 0666) || chmod(fifoPath, 0666)) { androidLogError("Failed to create fifo %s: %s\n", fifoPath, strerror(errno)); exit(EXIT_FAILURE); } |