diff options
Diffstat (limited to 'src/testlib/qplaintestlogger.cpp')
-rw-r--r-- | src/testlib/qplaintestlogger.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/testlib/qplaintestlogger.cpp b/src/testlib/qplaintestlogger.cpp index 748bd00643..58c7f6bf5b 100644 --- a/src/testlib/qplaintestlogger.cpp +++ b/src/testlib/qplaintestlogger.cpp @@ -16,13 +16,6 @@ #include <stdlib.h> #include <string.h> -#ifdef min // windows.h without NOMINMAX is included by the benchmark headers. -# undef min -#endif -#ifdef max -# undef max -#endif - #include <QtCore/QByteArray> #include <QtCore/qmath.h> #include <QtCore/QLibraryInfo> @@ -243,7 +236,7 @@ namespace QTest { QPlainTestLogger implements basic logging of test results. - The format is Qt-specific and aims to be be easy to read. + The format is Qt-specific and aims to be easy to read. */ void QPlainTestLogger::outputMessage(const char *str) @@ -499,4 +492,13 @@ void QPlainTestLogger::addMessage(MessageTypes type, const QString &message, printMessage(MessageSource::Other, QTest::ptMessageType2String(type), qPrintable(message), file, line); } +bool QPlainTestLogger::isRepeatSupported() const +{ + // The plain text logger creates unstructured reports. Such reports are not + // parser friendly, and are unlikely to be parsed by any test reporting + // tools. We can therefore allow repeated test runs with minimum risk that + // any parsers fails to handle repeated test names. + return true; +} + QT_END_NAMESPACE |