[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-7.2.10 50/54] tests/unit/test-util-sockets: Remove temporary fil
From: |
Michael Tokarev |
Subject: |
[Stable-7.2.10 50/54] tests/unit/test-util-sockets: Remove temporary file after test |
Date: |
Sun, 3 Mar 2024 10:39:29 +0300 |
From: Thomas Huth <thuth@redhat.com>
test-util-sockets leaves the temporary socket files around in the
temporary files folder. Let's better remove them at the end of the
testing.
Fixes: 4d3a329af5 ("tests/util-sockets: add abstract unix socket cases")
Message-ID: <20240226082728.249753-1-thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit f0cb6828ae34fb56fbb869bb3147a636d1c984ce)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/tests/unit/test-util-sockets.c b/tests/unit/test-util-sockets.c
index 63909ccb2b..4c9dd0b271 100644
--- a/tests/unit/test-util-sockets.c
+++ b/tests/unit/test-util-sockets.c
@@ -326,6 +326,7 @@ static void test_socket_unix_abstract(void)
test_socket_unix_abstract_row(&matrix[i]);
}
+ unlink(addr.u.q_unix.path);
g_free(addr.u.q_unix.path);
}
--
2.39.2
- [Stable-7.2.10 v3 00/54] Patch Round-up for stable 7.2.10, freeze on 2024-03-02 (frozen), Michael Tokarev, 2024/03/03
- [Stable-7.2.10 48/54] gitlab: force allow use of pip in Cirrus jobs, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 50/54] tests/unit/test-util-sockets: Remove temporary file after test,
Michael Tokarev <=
- [Stable-7.2.10 49/54] hw/usb/bus.c: PCAP adding 0xA in Windows version, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 51/54] test-vmstate: fix bad GTree usage, use-after-free, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 53/54] tests/unit/test-blockjob: Disable complete_in_standby test, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 52/54] tests/qtest/display-vga-test: Add proper checks if a device is available, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 54/54] target/i386: the sgx_epc_get_section stub is reachable, Michael Tokarev, 2024/03/03