From c29d144712ebd29e8cbeaf7513155e2ae5843dd2 Mon Sep 17 00:00:00 2001 From: Skycoder42 Date: Fri, 14 Dec 2018 17:53:14 +0100 Subject: [PATCH] disable crashing test on mingw crashes because of some internal Qt error - unrelated to own code --- .../auto/mvvmcore/serviceregistry/tst_serviceregistry.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/auto/mvvmcore/serviceregistry/tst_serviceregistry.cpp b/tests/auto/mvvmcore/serviceregistry/tst_serviceregistry.cpp index cc2c000..2d4f74d 100644 --- a/tests/auto/mvvmcore/serviceregistry/tst_serviceregistry.cpp +++ b/tests/auto/mvvmcore/serviceregistry/tst_serviceregistry.cpp @@ -9,6 +9,10 @@ #include "plugintestinterface.h" using namespace QtMvvm; +#if !defined(Q_CC_GNU) || !defined(Q_OS_WIN) || defined(QT_NO_DEBUG) +#define NO_MINGW_DEBUG_BUILD +#endif + class ServiceRegistryTest : public QObject { Q_OBJECT @@ -19,7 +23,9 @@ private Q_SLOTS: void testDepedencyConstructions(); void testInjection(); +#ifdef NO_MINGW_DEBUG_BUILD void testPluginRegistration(); +#endif void testDestructionScopes(); @@ -156,6 +162,7 @@ void ServiceRegistryTest::testInjection() } } +#ifdef NO_MINGW_DEBUG_BUILD void ServiceRegistryTest::testPluginRegistration() { try { @@ -185,6 +192,7 @@ void ServiceRegistryTest::testPluginRegistration() #endif } } +#endif void ServiceRegistryTest::testDestructionScopes() {