]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/unit/test-util-sockets: Use g_file_open_tmp() to create temp file
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 24 Dec 2021 23:45:04 +0000 (00:45 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 5 Jan 2022 10:10:13 +0000 (11:10 +0100)
commit585507017c956e6695ef4ee760440dc6153ed5cd
treece6eba321be70b1126072ebf171ccf9a47ba442e
parent961fb4b465800318792047de2339292f3ac37fa6
tests/unit/test-util-sockets: Use g_file_open_tmp() to create temp file

Similarly to commit e63ed64c6d1 ("tests/qtest/virtio-net-failover:
Use g_file_open_tmp() to create temporary file"), avoid calling
g_test_rand_int() before g_test_init(): use g_file_open_tmp().

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211224234504.3413370-1-philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/unit/test-util-sockets.c