aboutsummaryrefslogtreecommitdiff
path: root/tests/Version_test.cpp
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-21 11:02:57 +0100
committerGitHub <noreply@github.com>2023-07-21 11:02:57 +0100
commit0be4db30eb98f65543b30d6a2d970ef1df64633b (patch)
tree2135c398f3d01816a0f508dd5e29e155625793cc /tests/Version_test.cpp
parent4c6929038159a29c437b30616daa0b2672531e4d (diff)
parent821dd8400b1a27ab1f932200bfa77d7a04edef5d (diff)
downloadPrismLauncher-0be4db30eb98f65543b30d6a2d970ef1df64633b.tar.gz
PrismLauncher-0be4db30eb98f65543b30d6a2d970ef1df64633b.tar.bz2
PrismLauncher-0be4db30eb98f65543b30d6a2d970ef1df64633b.zip
Merge branch 'PrismLauncher:develop' into better-component-installation
Diffstat (limited to 'tests/Version_test.cpp')
-rw-r--r--tests/Version_test.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/Version_test.cpp b/tests/Version_test.cpp
index afb4c610..f5488cbc 100644
--- a/tests/Version_test.cpp
+++ b/tests/Version_test.cpp
@@ -20,6 +20,8 @@
class VersionTest : public QObject {
Q_OBJECT
+ QStringList m_flex_test_names = {};
+
void addDataColumns()
{
QTest::addColumn<QString>("first");
@@ -101,8 +103,9 @@ class VersionTest : public QObject {
QString first{split_line.first().simplified()};
QString second{split_line.last().simplified()};
- auto new_test_name = test_name_template.arg(QString::number(test_number), "lessThan").toLatin1().data();
- QTest::newRow(new_test_name) << first << second << true << false;
+ auto new_test_name = test_name_template.arg(QString::number(test_number), "lessThan");
+ m_flex_test_names.append(new_test_name);
+ QTest::newRow(m_flex_test_names.last().toLatin1().data()) << first << second << true << false;
continue;
}
@@ -112,8 +115,9 @@ class VersionTest : public QObject {
QString first{split_line.first().simplified()};
QString second{split_line.last().simplified()};
- auto new_test_name = test_name_template.arg(QString::number(test_number), "equals").toLatin1().data();
- QTest::newRow(new_test_name) << first << second << false << true;
+ auto new_test_name = test_name_template.arg(QString::number(test_number), "equals");
+ m_flex_test_names.append(new_test_name);
+ QTest::newRow(m_flex_test_names.last().toLatin1().data()) << first << second << false << true;
continue;
}
@@ -123,8 +127,9 @@ class VersionTest : public QObject {
QString first{split_line.first().simplified()};
QString second{split_line.last().simplified()};
- auto new_test_name = test_name_template.arg(QString::number(test_number), "greaterThan").toLatin1().data();
- QTest::newRow(new_test_name) << first << second << false << false;
+ auto new_test_name = test_name_template.arg(QString::number(test_number), "greaterThan");
+ m_flex_test_names.append(new_test_name);
+ QTest::newRow(m_flex_test_names.last().toLatin1().data()) << first << second << false << false;
continue;
}