diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2025-07-15 15:30:18 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-07-21 07:58:57 +0200 |
| commit | 72bc0134b500d599f0f1c253c78c68df642d1634 (patch) | |
| tree | 04b487532e93417befeec37442026cc86a5fb85d /tests/functional/test_multiprocess.py | |
| parent | 069a2ce8a75c9b59a4d08d6d2da3b36bfc5af3f4 (diff) | |
| download | focaccia-qemu-72bc0134b500d599f0f1c253c78c68df642d1634.tar.gz focaccia-qemu-72bc0134b500d599f0f1c253c78c68df642d1634.zip | |
functional: ensure sockets and files are closed
The multiprocess and virtio_gpu tests open sockets but then forget to close them, which triggers resource leak warnings The virtio_gpu test also fails to close a log file it opens. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20250715143023.1851000-10-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_multiprocess.py')
| -rwxr-xr-x | tests/functional/test_multiprocess.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/test_multiprocess.py b/tests/functional/test_multiprocess.py index 751cf10e63..92d5207b0e 100755 --- a/tests/functional/test_multiprocess.py +++ b/tests/functional/test_multiprocess.py @@ -83,6 +83,9 @@ class Multiprocess(QemuSystemTest): 'cat /sys/bus/pci/devices/*/uevent', 'PCI_ID=1000:0012') + proxy_sock.close() + remote_sock.close() + def test_multiprocess(self): kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE if self.arch == 'x86_64': |