Go to file
Jason McDonald e8e9b62f72 Enable multiple instances of QAbstractTestLogger.
Previously QAbstractTestLogger used a global variable for the file
pointer to which it was writing test output.  This effectively meant
that only one instance of this or its derived classes could exist at any
time.

This commit moves the file pointer inside the class, so that multiple
loggers can exist at the same time.  This means that the outputString()
method can no longer be static, which in turn means that several
functions used by QPlainTestLogger need to move from the QTest namespace
into the class, and also that QTestBasicStreamer must hold a non-const
pointer to its associated logger instead of a const pointer.

Task-number: QTBUG-20615
Change-Id: If941f1f9399cf20fb93e3e87f3390bceeca1cbfc
Reviewed-on: http://codereview.qt.nokia.com/3576
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2011-08-29 03:45:35 +02:00
bin Don't use the // operator, since some versions of Perl don't have it. 2011-08-26 02:22:09 +02:00
config.profiles Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
config.tests Fixed opengldesktop configure test for mac. 2011-07-05 05:17:35 +02:00
dist Update changelog with Accessibility fixes. 2011-08-18 15:51:13 +02:00
doc/src Add flag for non-recursive lookup of child qobject(s) 2011-08-15 13:37:49 +02:00
examples Support -qtnamespace and -qtlibinfix in qtbase examples 2011-08-08 16:41:27 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Configure: Set separate_debug_info for all modules 2011-08-16 11:48:43 +02:00
qmake Make qmake load default_pre.prf for each project, like default_post.prf 2011-07-21 20:40:51 +02:00
src Enable multiple instances of QAbstractTestLogger. 2011-08-29 03:45:35 +02:00
tests test: marked tst_qfiledialog as insignificant for qpa, xcb 2011-08-25 15:00:31 +02:00
tools Submit ui4.cpp/h as generated by corresponding change in qttools. 2011-08-12 13:12:46 +02:00
util drop an obsolete QChar::NoCategory enum value 2011-07-13 13:31:13 +02:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Remove obsolete testlib files from .gitignore 2011-08-29 03:38:45 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Configure: Set separate_debug_info for all modules 2011-08-16 11:48:43 +02:00
configure.exe New configure.exe binary 2011-05-23 09:24:19 -05:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Try to make sure the config test script is installed. 2011-07-26 13:40:07 +02:00
sync.profile Update sync.profile dependencies to new syntax 2011-07-07 12:30:00 +02:00