Index: base/test/test_suite.h |
=================================================================== |
--- base/test/test_suite.h (revision 46298) |
+++ base/test/test_suite.h (working copy) |
@@ -57,8 +57,10 @@ |
CommandLine::Init(argc, argv); |
testing::InitGoogleTest(&argc, argv); |
#if defined(OS_POSIX) && !defined(OS_MACOSX) |
- g_thread_init(NULL); |
- gtk_init_check(&argc, &argv); |
+ if (!g_thread_supported()) { |
+ g_thread_init(NULL); |
+ gtk_init_check(&argc, &argv); |
+ } |
#endif // defined(OS_LINUX) |
// Don't add additional code to this constructor. Instead add it to |
// Initialize(). See bug 6436. |