aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/autotestunittests.cpp
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2016-07-01 08:56:49 +0200
committerChristian Stenger <[email protected]>2016-07-15 10:17:44 +0000
commit9a3a0fa7ce7b7a547b4213e647def14c632cf9d4 (patch)
tree149a804015f707b938be4f372f08106cc06c2591 /src/plugins/autotest/autotestunittests.cpp
parent38484d463c9150d84f848ea5956ebaf529d86c68 (diff)
AutoTest: Fix detection of gtests inside namespaces
Task-number: QTCREATORBUG-16535 Change-Id: I3285d2545e2861607b6e1406ee24f950405c4367 Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/plugins/autotest/autotestunittests.cpp')
-rw-r--r--src/plugins/autotest/autotestunittests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/autotest/autotestunittests.cpp b/src/plugins/autotest/autotestunittests.cpp
index 2628c0698d1..189099a421d 100644
--- a/src/plugins/autotest/autotestunittests.cpp
+++ b/src/plugins/autotest/autotestunittests.cpp
@@ -204,7 +204,7 @@ void AutoTestUnitTests::testCodeParserGTest()
QVERIFY(parserSpy.wait(20000));
QVERIFY(modelUpdateSpy.wait());
- QCOMPARE(m_model->gtestNamesCount(), 6);
+ QCOMPARE(m_model->gtestNamesCount(), 7);
QMultiMap<QString, int> expectedNamesAndSets;
expectedNamesAndSets.insert(QStringLiteral("FactorialTest"), 3);
@@ -213,6 +213,7 @@ void AutoTestUnitTests::testCodeParserGTest()
expectedNamesAndSets.insert(QStringLiteral("QueueTest"), 2);
expectedNamesAndSets.insert(QStringLiteral("DummyTest"), 1); // used as parameterized test
expectedNamesAndSets.insert(QStringLiteral("DummyTest"), 1); // used as 'normal' test
+ expectedNamesAndSets.insert(QStringLiteral("NamespaceTest"), 1);
QMultiMap<QString, int> foundNamesAndSets = m_model->gtestNamesAndSets();
QCOMPARE(expectedNamesAndSets.size(), foundNamesAndSets.size());