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>
This commit is contained in:
Edward Welbourne 2021-07-13 13:27:05 +02:00
parent 935861e91a
commit 65ac651f12

View File

@ -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(); running.release();
exec(); exec();
} }