qt5base-lts/tests/auto/corelib/global/qlogging
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
..
app Update copyright headers 2015-02-11 06:49:51 +00:00
test Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
qlogging.pro Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
tst_qlogging.cpp Fix qSetMessagePattern to have many time/backtrace parts 2016-03-25 11:03:43 +00:00