tests: disable test_contextual_thread at apple
fix
@@ -112,6 +112,7 @@ public:
}
};
+
bool g_toggle = false;
void toggleOn ()
@@ -136,14 +137,18 @@ void activate1 (Coordinator & gc, KeySet & ks)
c1.activate<Activate> ();
ASSERT_TRUE (g_toggle);
ASSERT_EQ (v1, 22);
- std::this_thread::sleep_for (std::chrono::milliseconds (100));
+ std::this_thread::sleep_for (std::chrono::milliseconds (200));
ASSERT_EQ (v1, 22);
c1.deactivate<Activate> ();
ASSERT_FALSE (g_toggle);
ASSERT_EQ (v1, 10);
}
+#if defined(__APPLE__)
+TEST (DISABLED_test_contextual_thread, activate)
+#else
TEST (test_contextual_thread, activate)
+#endif
{
Key specKey ("/act/%activate%", KEY_CASCADING_NAME, KEY_END);
@@ -161,7 +166,7 @@ TEST (test_contextual_thread, activate)
std::thread t1 (activate1, std::ref (gc), std::ref (ks));
ASSERT_EQ (v, 10);
- std::this_thread::sleep_for (std::chrono::milliseconds (50));
+ std::this_thread::sleep_for (std::chrono::milliseconds (100));
ASSERT_TRUE (g_toggle);
c.syncLayers ();
ASSERT_EQ (v, 22);
