diff options
author | Andreas Zieringer <andreas.zieringer@autodesk.com> | 2018-10-26 12:41:08 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-10-30 09:04:59 +0000 |
commit | 41e1a4bd2b667c7e5c54553e2b189b2beb38ef49 (patch) | |
tree | 858ce4ca321cdd3a94949e2bc9b65bf966f3e75b /tests/auto/cmdlineparser | |
parent | 51a2f206cbed8523ae13ff327de34d14592f9523 (diff) |
Add "show progress" support on Windows
Should work with all console types.
Fixes: QBS-1407
Change-Id: I5144469d70d79a263f9960092abda9a3d83462a1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/cmdlineparser')
-rw-r--r-- | tests/auto/cmdlineparser/tst_cmdlineparser.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp index 88a458d53..15b9ec382 100644 --- a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp +++ b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp @@ -84,14 +84,11 @@ private slots: QVERIFY(parser.parseCommandLine(QStringList() << "-t" << m_fileArgs)); QVERIFY(parser.logTime()); - if (!Internal::HostOsInfo::isWindowsHost()) { // Windows has no progress bar atm. - // Note: We cannot just check for !parser.logTime() here, because if the test is not - // run in a terminal, "--show-progress" is ignored, in which case "--log-time" - // takes effect. - QVERIFY(parser.parseCommandLine(QStringList() << "-t" << "--show-progress" - << m_fileArgs)); - QVERIFY(parser.showProgress() != parser.logTime()); - } + // Note: We cannot just check for !parser.logTime() here, because if the test is not + // run in a terminal, "--show-progress" is ignored, in which case "--log-time" + // takes effect. + QVERIFY(parser.parseCommandLine(QStringList() << "-t" << "--show-progress" << m_fileArgs)); + QVERIFY(parser.showProgress() != parser.logTime()); QVERIFY(parser.parseCommandLine(QStringList() << "-vvqqq" << m_fileArgs)); QCOMPARE(ConsoleLogger::instance().logSink()->logLevel(), LoggerWarning); |