mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
tests/qtest: Use g_mkdtemp()
Windows does not provide a mkdtemp() API, but glib does. Replace mkdtemp() call with the glib version. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220824094029.1634519-3-bmeng.cn@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
a47ea61de5
commit
3c239aa77e
10 changed files with 17 additions and 17 deletions
|
@ -393,7 +393,7 @@ QTestState *qtest_init_with_serial(const char *extra_args, int *sock_fd)
|
|||
char *sock_path, sock_dir[] = "/tmp/qtest-serial-XXXXXX";
|
||||
QTestState *qts;
|
||||
|
||||
g_assert_true(mkdtemp(sock_dir) != NULL);
|
||||
g_assert_true(g_mkdtemp(sock_dir) != NULL);
|
||||
sock_path = g_strdup_printf("%s/sock", sock_dir);
|
||||
|
||||
sock_fd_init = init_socket(sock_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue