All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: qemu-devel@nongnu.org
Cc: qemu-stable@nongnu.org, "Thomas Huth" <thuth@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Michael Tokarev" <mjt@tls.msk.ru>
Subject: [Stable-8.2.2 81/82] tests/unit/test-util-sockets: Remove temporary file after test
Date: Sun,  3 Mar 2024 12:32:59 +0300	[thread overview]
Message-ID: <20240303093304.1356981-3-mjt@tls.msk.ru> (raw)
In-Reply-To: <qemu-stable-8.2.2-20240303104213@cover.tls.msk.ru>

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



  parent reply	other threads:[~2024-03-03  9:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-03  9:32 [Stable-8.2.2 v3 00/82] Patch Round-up for stable 8.2.2, freeze on 2024-03-02 (frozen) Michael Tokarev
2024-03-03  9:32 ` [Stable-8.2.2 79/82] hw/intc/Kconfig: Fix GIC settings when using "--without-default-devices" Michael Tokarev
2024-03-03  9:32 ` [Stable-8.2.2 80/82] hw/usb/bus.c: PCAP adding 0xA in Windows version Michael Tokarev
2024-03-03  9:32 ` Michael Tokarev [this message]
2024-03-03  9:33 ` [Stable-8.2.2 82/82] chardev/char-socket: Fix TLS io channels sending too much data to the backend Michael Tokarev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240303093304.1356981-3-mjt@tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=marcandre.lureau@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.