Searched hist:"68406 d10859385c88da73d0106254a7f47e6652e" (Results 1 – 1 of 1) sorted by relevance
/qemu/tests/unit/ |
H A D | test-io-channel-command.c | 68406d10859385c88da73d0106254a7f47e6652e Thu Oct 27 18:36:35 UTC 2022 Alex Bennée <alex.bennee@linaro.org> tests/unit: cleanups for test-io-channel-command
This test is hanging under heavy load when the two socats race while trying to create the socket. I've tried various approaches to avoid the race but it seems "creat=0" won't stop socat trying to create a pipe if it executes first. In the end I just use a small sleep which seems to be reliable enough on the load situations I've tried.
While I was there I also properly created a tmpdir for the socket to live in which is cleaned up at the end of the test.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Marc-André Lureau <marcandre.lureau@redhat.com> Cc: Juan Quintela <quintela@redhat.com> Message-Id: <20221027183637.2772968-30-alex.bennee@linaro.org>
|