From 65ac651f12dee187a62146696d8b3a0a21e44e33 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 13 Jul 2021 13:27:05 +0200 Subject: QLocalSocket benchmark: Report server error string if listen() fails Including the error string gives whoever's running the test at least some clue what's going wrong. One day it might even give them the information they need to get later runs of the server past this hurdle. Task-number: QTBUG-95136 Change-Id: I5d67097339f1db78dfb7ba2ed4357121396977dd Reviewed-by: Alex Trotsenko --- tests/benchmarks/network/socket/qlocalsocket/tst_qlocalsocket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/benchmarks/network/socket') diff --git a/tests/benchmarks/network/socket/qlocalsocket/tst_qlocalsocket.cpp b/tests/benchmarks/network/socket/qlocalsocket/tst_qlocalsocket.cpp index 86112f442d..406fe741e0 100644 --- a/tests/benchmarks/network/socket/qlocalsocket/tst_qlocalsocket.cpp +++ b/tests/benchmarks/network/socket/qlocalsocket/tst_qlocalsocket.cpp @@ -75,7 +75,9 @@ public: }); }); - QVERIFY(server.listen("foo")); + // TODO QTBUG-95136: on failure, remove the socket file and retry. + QVERIFY2(server.listen("foo"), qPrintable(server.errorString())); + running.release(); exec(); } -- cgit v1.2.3