mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 19:06:58 +03:00
Merge pull request #1306 from Ryex/ci/address-sanitiser_on_debug_builds
This commit is contained in:
parent
7926170073
commit
27f6debdaf
5 changed files with 129 additions and 91 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue