aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2022-08-08 11:39:32 +0100
committerGitHub <noreply@github.com>2022-08-08 11:39:32 +0100
commitff0ef3fb1ed7b206d0586071a88778110b245582 (patch)
tree06abf5d247c137dcfa45231f286bd1518d1e1ab7 /test
parent1305f161b7e0dd2c2a420c17efcb0bd49b94dad4 (diff)
downloadlibvfio-user-ff0ef3fb1ed7b206d0586071a88778110b245582.zip
libvfio-user-ff0ef3fb1ed7b206d0586071a88778110b245582.tar.gz
libvfio-user-ff0ef3fb1ed7b206d0586071a88778110b245582.tar.bz2
delete socket on vfu_ctx_destroy (#702)
fixes #660 Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'test')
-rw-r--r--test/py/test_destroy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/py/test_destroy.py b/test/py/test_destroy.py
index 713c1fb..ffe4506 100644
--- a/test/py/test_destroy.py
+++ b/test/py/test_destroy.py
@@ -53,6 +53,7 @@ def test_destroy_ctx(mock_reset, mock_quiesce):
vfu_destroy_ctx(ctx)
assert mock_quiesce.call_count == 0
mock_reset.assert_called_once_with(ctx, VFU_RESET_LOST_CONN)
+ assert not os.path.exists(SOCK_PATH)
# ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: #