qt5base-lts/tests/auto/corelib/global
M. Moellney 705d29585b Fix qSetMessagePattern to have many time/backtrace parts
The previous implementation overwrote multiple 'time' parts in the
qSetMessagePattern with the last setting in the pattern line.
%{time}%{time process}%{time boot} ended up to be output as if
%{time boot}%{time boot}%{time boot} was set.

This fix keeps the arguments of each individual 'time' part.

The same holds for multiple 'backtrace' parts. The previouse
implementation overwrote multiple 'backtrace' arguments with the
arguments of the last occurrence.

This fix keeps the individual arguments for the 'process' parts.

The individual arguments are applied in qFormatLogMessage.

A new test to verify the individual 'time' arguments application
is added, too.

Task-number: QTBUG-51944
Change-Id: Ib757614a482c5f31ed0a61b550daa2eea4b907b4
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-03-25 11:03:43 +00:00
..
q_func_info Update copyright headers 2015-02-11 06:49:51 +00:00
qflags Use correct test to add C++14 to the project configuration 2015-12-01 15:46:31 +00:00
qgetputenv QtCore: assorted migrations to QString::asprintf 2015-02-12 19:40:04 +00:00
qglobal Tests: Replace Q[TRY]_VERIFY(v == true|false) by QVERIFY(v)|QVERIFY(!v). 2015-07-27 12:09:19 +00:00
qglobalstatic Merge remote-tracking branch 'origin/5.5' into HEAD 2015-07-17 16:35:42 +02:00
qhooks Update copyright headers 2015-02-11 06:49:51 +00:00
qlogging Fix qSetMessagePattern to have many time/backtrace parts 2016-03-25 11:03:43 +00:00
qnumeric Skip tst_QNumeric::addOverflow() for MSVC2015. 2015-09-30 04:28:39 +00:00
qrand Update copyright headers 2015-02-11 06:49:51 +00:00
qtendian Update copyright headers 2015-02-11 06:49:51 +00:00
global.pro Add a more reliable replacement for qt_add/removeObject(). 2014-04-15 17:50:20 +02:00