[GTK] Test /webkit2/WebKitWebView/sync-request-on-max-conns might fail after finished
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Mar 2015 17:21:11 +0000 (17:21 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Mar 2015 17:21:11 +0000 (17:21 +0000)
commit085ba8ac729f9b1242f98743509e35fc32ec1761
tree7b96a81ce62618cb0eea4141462bb9486d5f74cb
parentc87d5883852e106844635046436c21b26e936c3e
[GTK] Test /webkit2/WebKitWebView/sync-request-on-max-conns might fail after finished
https://bugs.webkit.org/show_bug.cgi?id=142385

Reviewed by Sergio Villar Senin.

Use stack allocated GMainLoopSources to make sure they are
cancelled automatically if the test finishes before they have
been processed.

* TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
(testWebViewSyncRequestOnMaxConns):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp