QCommandLineParser: remove redundant #ifdef from unittest
C++11 has been required for a long time. Pick-to: 6.6 6.5 Change-Id: Ib6c1571b100dd4eb8194d515f2180ca26481b556 Reviewed-by: David Faure <david.faure@kdab.com> (cherry picked from commit 66dd00dcfd8a715ff6bc736e6beb5f2d3b2c69cc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
091ce6477c
commit
8e8b300337
@ -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;
|
||||
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user