aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test-util-sockets.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2024-02-26 09:27:28 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2024-03-01 19:00:07 +0300
commit72e2a246385c0162df948824f1cc19e0b37548e9 (patch)
tree008ad338a33e4464e49074698076ef4203c178d6 /tests/unit/test-util-sockets.c
parent8dd9165e7c0bf5e108d443b73a36cb602982bd62 (diff)
tests/unit/test-util-sockets: Remove temporary file after test
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>
Diffstat (limited to 'tests/unit/test-util-sockets.c')
-rw-r--r--tests/unit/test-util-sockets.c1
1 files changed, 1 insertions, 0 deletions
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);
}