From 03ddd495d8d6927732c00076b2f927481c536e66 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Thu, 12 Jul 2018 22:11:57 +0200 Subject: [PATCH] Disabled brute-force shutdown test for threads on Qt - QThread is not able to deal with this. --- src/tl/unit_tests/tlThreads.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tl/unit_tests/tlThreads.cc b/src/tl/unit_tests/tlThreads.cc index fcbbddcfa..11daeadbd 100644 --- a/src/tl/unit_tests/tlThreads.cc +++ b/src/tl/unit_tests/tlThreads.cc @@ -115,13 +115,16 @@ TEST(1_basic) EXPECT_EQ (my_thread.value () >= 5 && my_thread.value () < 10, true); } +#if !defined(HAVE_QT) // basic: thread dtor while running +// NOTE: QThread can't handle this - the pthread-based implementation will terminate the thread in this case TEST(1_brute_shutdown) { MyThread my_thread; my_thread.start (); EXPECT_EQ (true, true); // makes the compiler happy } +#endif // basic: concurrency, ability to stop async, wait TEST(1_timed_wait)