Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit c29d144

Browse files
committed
disable crashing test on mingw
crashes because of some internal Qt error - unrelated to own code
1 parent eb0f285 commit c29d144

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/auto/mvvmcore/serviceregistry/tst_serviceregistry.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include "plugintestinterface.h"
1010
using namespace QtMvvm;
1111

12+
#if !defined(Q_CC_GNU) || !defined(Q_OS_WIN) || defined(QT_NO_DEBUG)
13+
#define NO_MINGW_DEBUG_BUILD
14+
#endif
15+
1216
class ServiceRegistryTest : public QObject
1317
{
1418
Q_OBJECT
@@ -19,7 +23,9 @@ private Q_SLOTS:
1923
void testDepedencyConstructions();
2024
void testInjection();
2125

26+
#ifdef NO_MINGW_DEBUG_BUILD
2227
void testPluginRegistration();
28+
#endif
2329

2430
void testDestructionScopes();
2531

@@ -156,6 +162,7 @@ void ServiceRegistryTest::testInjection()
156162
}
157163
}
158164

165+
#ifdef NO_MINGW_DEBUG_BUILD
159166
void ServiceRegistryTest::testPluginRegistration()
160167
{
161168
try {
@@ -185,6 +192,7 @@ void ServiceRegistryTest::testPluginRegistration()
185192
#endif
186193
}
187194
}
195+
#endif
188196

189197
void ServiceRegistryTest::testDestructionScopes()
190198
{

0 commit comments

Comments
 (0)