From ac38401d3112f2ffeca072b65e1a254a9469fe30 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 29 Mar 2022 14:32:21 +0200 Subject: Move TAP's messages block to after the primary report details MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the process, split it from its comments block and don't bother with a YAML block if it would only have contained comments. Task-number: QTBUG-96844 Change-Id: I08c20f796252bb270ba9caa4c055cdcc0843a88b Reviewed-by: Tor Arne Vestbø --- src/testlib/qtaptestlogger_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testlib/qtaptestlogger_p.h') diff --git a/src/testlib/qtaptestlogger_p.h b/src/testlib/qtaptestlogger_p.h index 99902b2f08..2650e95895 100644 --- a/src/testlib/qtaptestlogger_p.h +++ b/src/testlib/qtaptestlogger_p.h @@ -78,7 +78,7 @@ public: private: void outputTestLine(bool ok, int testNumber, const QTestCharBuffer &directive); void outputBuffer(const QTestCharBuffer &buffer); - bool hasMessages() const { return m_comments.constData()[0] || m_messages.constData()[0]; } + void flushComments(); void flushMessages(); void beginYamlish(); void endYamlish(); -- cgit v1.2.3