aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2019-02-09 16:27:37 +0100
committerDavid Faure <faure@kde.org>2019-02-09 16:27:37 +0100
commit6bbb7b0a87461207896f90fbe425c7659c2d4063 (patch)
tree95fab8b70a18231413984d813ad19592bf4b8f6a /tests
parent89270fd171574b541376e5783492b02e18ac3c79 (diff)
downloadextra-cmake-modules-6bbb7b0a87461207896f90fbe425c7659c2d4063.tar.gz
extra-cmake-modules-6bbb7b0a87461207896f90fbe425c7659c2d4063.tar.bz2
Fix destroying QThread while still running -> warning -> crash
Diffstat (limited to 'tests')
-rw-r--r--tests/ECMPoQmToolsTest/tr_thread_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ECMPoQmToolsTest/tr_thread_test.cpp b/tests/ECMPoQmToolsTest/tr_thread_test.cpp
index b45dd575..6f7bac0a 100644
--- a/tests/ECMPoQmToolsTest/tr_thread_test.cpp
+++ b/tests/ECMPoQmToolsTest/tr_thread_test.cpp
@@ -90,6 +90,8 @@ int main(int argc, char** argv)
app.exec();
+ thread.wait();
+
return 0;
}