diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-07-13 13:27:05 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-07-15 17:06:53 +0200 |
commit | 65ac651f12dee187a62146696d8b3a0a21e44e33 (patch) | |
tree | 3af298285d21a754baf70ea4ce93daf1f9028b81 /tests/benchmarks | |
parent | 935861e91a68c49414d8fc5fdb035f32991c135b (diff) |
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 <alex1973tr@gmail.com>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/network/socket/qlocalsocket/tst_qlocalsocket.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |