<http://webkit.org/b/75064>
Reviewed by Adam Roben.
* TestWebKitAPI/TestsController.cpp:
(TestWebKitAPI::TestsController::TestsController): Call
WTF::initializeMainThread() to prevent assertions in Debug
builds.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@103546
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-12-22 David Kilzer <ddkilzer@apple.com>
+
+ TestWebKitAPI: initialize the main thread before running tests
+ <http://webkit.org/b/75064>
+
+ Reviewed by Adam Roben.
+
+ * TestWebKitAPI/TestsController.cpp:
+ (TestWebKitAPI::TestsController::TestsController): Call
+ WTF::initializeMainThread() to prevent assertions in Debug
+ builds.
+
2011-12-22 David Kilzer <ddkilzer@apple.com>
run-api-tests: dumpAllTests() should not use global variables
2011-12-22 David Kilzer <ddkilzer@apple.com>
run-api-tests: dumpAllTests() should not use global variables
#include "config.h"
#include "TestsController.h"
#include "config.h"
#include "TestsController.h"
+#include <wtf/MainThread.h>
#include <wtf/Threading.h>
namespace TestWebKitAPI {
#include <wtf/Threading.h>
namespace TestWebKitAPI {
TestsController::TestsController()
{
TestsController::TestsController()
{
+ WTF::initializeMainThread();
+
// FIXME: We currently initialize threading here to avoid assertion failures from
// the ThreadRestrictionVerifier - https://bugs.webkit.org/show_bug.cgi?id=66112
// We should make sure that all objects tested either initialize threading or inherit from
// FIXME: We currently initialize threading here to avoid assertion failures from
// the ThreadRestrictionVerifier - https://bugs.webkit.org/show_bug.cgi?id=66112
// We should make sure that all objects tested either initialize threading or inherit from