Changeset 160481 in webkit


Ignore:
Timestamp:
Dec 12, 2013 1:17:23 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] WebProcess tests are failing with newer glib
https://bugs.webkit.org/show_bug.cgi?id=125621

Reviewed by Martin Robinson.

Newer versions of glib unset the DISPLAY env variable in
g_test_dbus_up(). The WebProcess needs the DISPLAY variable to
work, and it's important to keep its value when running the tests
under Xvfb.

  • UIProcess/API/gtk/tests/WebProcessTestRunner.cpp:

(WebProcessTestRunner::WebProcessTestRunner): Restore the DISPLAY
env variable after calling g_test_dbus_up().

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160480 r160481  
     12013-12-12  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] WebProcess tests are failing with newer glib
     4        https://bugs.webkit.org/show_bug.cgi?id=125621
     5
     6        Reviewed by Martin Robinson.
     7
     8        Newer versions of glib unset the DISPLAY env variable in
     9        g_test_dbus_up(). The WebProcess needs the DISPLAY variable to
     10        work, and it's important to keep its value when running the tests
     11        under Xvfb.
     12
     13        * UIProcess/API/gtk/tests/WebProcessTestRunner.cpp:
     14        (WebProcessTestRunner::WebProcessTestRunner): Restore the DISPLAY
     15        env variable after calling g_test_dbus_up().
     16
    1172013-12-12  Carlos Garcia Campos  <cgarcia@igalia.com>
    218
  • trunk/Source/WebKit2/UIProcess/API/gtk/tests/WebProcessTestRunner.cpp

    r153327 r160481  
    2727    , m_bus(adoptGRef(g_test_dbus_new(G_TEST_DBUS_NONE)))
    2828{
     29    // Save the DISPLAY env var to restore it after calling g_test_dbus_up() that unsets it.
     30    // See https://bugs.webkit.org/show_bug.cgi?id=125621.
     31    const char* display = g_getenv("DISPLAY");
    2932    g_test_dbus_up(m_bus.get());
     33    g_setenv("DISPLAY", display, FALSE);
    3034    m_connection = adoptGRef(g_bus_get_sync(G_BUS_TYPE_SESSION, 0, 0));
    3135}
Note: See TracChangeset for help on using the changeset viewer.