AutoTest: Fix detection of GTEST_TEST

Googletest allows specifying tests with the
GTEST_TEST macro which was ignored until now.

Fixes: QTCREATORBUG-23228
Change-Id: I7dffab890e002000b32f7cd5b7444dc06fabe35a
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-11-15 12:59:16 +01:00
parent 26e2572852
commit 4797111a4d

View File

@@ -34,7 +34,8 @@ namespace GTestUtils {
static const QStringList valid = {
QStringLiteral("TEST"), QStringLiteral("TEST_F"), QStringLiteral("TEST_P"),
QStringLiteral("TYPED_TEST"), QStringLiteral("TYPED_TEST_P")
QStringLiteral("TYPED_TEST"), QStringLiteral("TYPED_TEST_P"),
QStringLiteral("GTEST_TEST")
};
bool isGTestMacro(const QString &macro)