tests/qtest: vhost-user-blk-test: Avoid using hardcoded /tmp
commitc20413558a49326599b15c3854c0df68a0b45895
authorBin Meng <bin.meng@windriver.com>
Sun, 25 Sep 2022 11:29:55 +0000 (25 19:29 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:20 +0000 (27 20:51 +0200)
tree5c52e62342096d44150d4adf69a5d7aef49f774b
parent354aeeabecebb24cb7765b261f7a8ba084d3ef0e
tests/qtest: vhost-user-blk-test: Avoid using hardcoded /tmp

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

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