[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/10] tests: fix path separator, use g_build_filename()
From: |
marcandre . lureau |
Subject: |
[PATCH 02/10] tests: fix path separator, use g_build_filename() |
Date: |
Tue, 3 Jan 2023 15:08:06 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
tests/unit/test-io-channel-command.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/test-io-channel-command.c
b/tests/unit/test-io-channel-command.c
index 19f72eab96..096224962c 100644
--- a/tests/unit/test-io-channel-command.c
+++ b/tests/unit/test-io-channel-command.c
@@ -32,7 +32,7 @@ static char *socat = NULL;
static void test_io_channel_command_fifo(bool async)
{
g_autofree gchar *tmpdir = g_dir_make_tmp("qemu-test-io-channel.XXXXXX",
NULL);
- g_autofree gchar *fifo = g_strdup_printf("%s/%s", tmpdir, TEST_FIFO);
+ g_autofree gchar *fifo = g_build_filename(tmpdir, TEST_FIFO, NULL);
g_autofree gchar *srcargs = g_strdup_printf("%s - PIPE:%s,wronly", socat,
fifo);
g_autofree gchar *dstargs = g_strdup_printf("%s PIPE:%s,rdonly -", socat,
fifo);
g_auto(GStrv) srcargv = g_strsplit(srcargs, " ", -1);
--
2.39.0
- [PATCH 00/10] Various win32 fixes & new 'get-win32-socket' QMP command, marcandre . lureau, 2023/01/03
- [PATCH 02/10] tests: fix path separator, use g_build_filename(),
marcandre . lureau <=
- [PATCH 03/10] tests: fix test-io-channel-command on win32, marcandre . lureau, 2023/01/03
- [PATCH 01/10] ccid-card-emulated: fix cast warning/error, marcandre . lureau, 2023/01/03
- [PATCH 04/10] tests/docker: fix a win32 error due to portability, marcandre . lureau, 2023/01/03
- [PATCH 05/10] tests/readconfig: spice doesn't support unix socket on windows yet, marcandre . lureau, 2023/01/03