summaryrefslogtreecommitdiffstats
path: root/block/commit.c
diff options
context:
space:
mode:
authorPeter Maydell2017-03-31 14:36:41 +0200
committerPeter Maydell2017-04-03 20:05:38 +0200
commitd9123d09f711bf1b855de2b5a907d4c85f46d6c3 (patch)
treef48af8afd7cf0a7432bf14f37f540d2ca7a78e52 /block/commit.c
parentMerge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2017-04-03' in... (diff)
downloadqemu-d9123d09f711bf1b855de2b5a907d4c85f46d6c3.tar.gz
qemu-d9123d09f711bf1b855de2b5a907d4c85f46d6c3.tar.xz
qemu-d9123d09f711bf1b855de2b5a907d4c85f46d6c3.zip
tests/libqtest.c: Delete possible stale unix sockets
Occasionally if a test crashes or is interrupted by the user at the wrong moment it could leave behind a stale UNIX socket in /tmp/. This will then cause a subsequent test run to fail spuriously with tests/libqtest.c:70:init_socket: assertion failed (ret != -1): (-1 != -1) if it happens to reuse the same PID. Defend against this by deleting any stray stale socket before trying to open the new ones for this test. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1490963801-27870-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions