QCommandLineParser: remove redundant #ifdef from unittest
C++11 has been required for a long time. Pick-to: 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> (cherry picked from commit 8e8b3003379b14b58524889d5e339709c52c032b)
This commit is contained in:
parent
281a41b81e
commit
cc10e712cb
@ -510,7 +510,6 @@ void tst_QCommandLineParser::testSingleDashWordOptionModes()
|
||||
|
||||
void tst_QCommandLineParser::testCpp11StyleInitialization()
|
||||
{
|
||||
#if defined(Q_COMPILER_UNIFORM_INIT)
|
||||
QCoreApplication app(empty_argc, empty_argv);
|
||||
|
||||
QCommandLineParser parser;
|
||||
@ -524,9 +523,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