tests/qtest: vhost-user-test: Avoid using hardcoded /tmp
commite6efe236c1d1f2451d59a7151c50d1c79360857c
authorBin Meng <bin.meng@windriver.com>
Tue, 27 Sep 2022 11:05:56 +0000 (27 19:05 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:21 +0000 (27 20:51 +0200)
treefbacaa1d08e20c3d2e2f86abe19c868006576a29
parentc12fea71a0195b71715f4c1b190232bebb2e9cf6
tests/qtest: vhost-user-test: Avoid using hardcoded /tmp

This case was written to use hardcoded /tmp directory for temporary
files. Update to use g_dir_make_tmp() for a portable implementation.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20220927110632.1973965-19-bmeng.cn@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/vhost-user-test.c