Skip to content

Commit

Permalink
QCommandLineParser: remove redundant #ifdef from unittest
Browse files Browse the repository at this point in the history
C++11 has been required for a long time.

Pick-to: 6.7 6.6 6.5
Change-Id: Ib6c1571b100dd4eb8194d515f2180ca26481b556
Reviewed-by: David Faure <[email protected]>
  • Loading branch information
ahmadsamir committed Mar 16, 2024
1 parent db295b6 commit 66dd00d
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,6 @@ void tst_QCommandLineParser::testSingleDashWordOptionModes()

void tst_QCommandLineParser::testCpp11StyleInitialization()
{
#if defined(Q_COMPILER_UNIFORM_INIT)
QCoreApplication app(empty_argc, empty_argv);

QCommandLineParser parser;
Expand All @@ -537,9 +536,6 @@ void tst_QCommandLineParser::testCpp11StyleInitialization()
QVERIFY(parser.parse({"tst_QCommandLineParser", "-a", "-vvv", "--infile=in.txt"}));
QCOMPARE(parser.optionNames(), (QStringList{"a", "v", "v", "v", "infile"}));
QCOMPARE(parser.value("infile"), QString("in.txt"));
#else
QSKIP("This test requires C++11 uniform initialization support in the compiler.");
#endif
}

void tst_QCommandLineParser::testVersionOption()
Expand Down

0 comments on commit 66dd00d

Please sign in to comment.