forked from qt-creator/qt-creator
Distinguish between parameterized and unparameterized google tests
This additionally fixes an issue when trying to execute a parameterized google test by invoking 'Run This Test' or using 'Run Selected Tests'. Change-Id: I199effcf76b34efd1a041c9a38b5bf90cdc002f8 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
committed by
Niels Weber
parent
2b414536a0
commit
cbdf48a792
@@ -36,6 +36,11 @@ public:
|
||||
return valid.contains(macro);
|
||||
}
|
||||
|
||||
static bool isGTestParameterized(const QString ¯o)
|
||||
{
|
||||
return macro == QStringLiteral("TEST_P");
|
||||
}
|
||||
|
||||
static bool isQTestMacro(const QByteArray ¯o)
|
||||
{
|
||||
static QByteArrayList valid = {"QTEST_MAIN", "QTEST_APPLESS_MAIN", "QTEST_GUILESS_MAIN"};
|
||||
|
||||
Reference in New Issue
Block a user