tests/unit/test-util-sockets: Remove temporary file after test
PATCH 1/1 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.
--- tests/unit/test-util-sockets.c | 1 + 1 file changed, 1 insertion(+)
tests/unit/test-util-sockets.c +1 -0
@@ -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); }
Signature · 1 line
2.43.2
Quoted 6 lines · Thomas Huth
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.
Signed-off-by Thomas Huth <[email protected]>
Quoted 20 lines
--- tests/unit/test-util-sockets.c | 1 + 1 file changed, 1 insertion(+)tests/unit/test-util-sockets.c +1
-1@@ -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.43.2
Signature · 1 line
Marc-André Lureau
Quoted 14 lines · Thomas Huth
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.
Signed-off-by Thomas Huth <[email protected]>--- tests/unit/test-util-sockets.c | 1 + 1 file changed, 1 insertion(+)tests/unit/test-util-sockets.c +0
-0
tests/unit/test-util-sockets.c static void test_socket_unix_abstract(void) · line 332
Quoted 7 lines
tests/unit/test-util-sockets.c +1
-0@@ -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); }
Maybe:
Quoted 14 lines · Thomas Huth
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.
Signed-off-by Thomas Huth <[email protected]>--- tests/unit/test-util-sockets.c | 1 + 1 file changed, 1 insertion(+)tests/unit/test-util-sockets.c +0
-0
tests/unit/test-util-sockets.c static void test_socket_unix_abstract(void) · line 331
Quoted 6 lines
tests/unit/test-util-sockets.c +1
-0@@ -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); }
Added the Fixes: tag as suggested by Philippe, and queued to trivial-patches tree. Thank you Thomas for this thankless work!
/mjt