tests/qtest: qmp-test: Avoid using hardcoded /tmp
authorBin Meng <bin.meng@windriver.com>
Tue, 27 Sep 2022 11:05:54 +0000 (19:05 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:21 +0000 (20:51 +0200)
commitc12fea71a0195b71715f4c1b190232bebb2e9cf6
treea1057fc57f77ae89cd283e759358d5c0fa1650cb
parent8189b27d3b183e27e3720f4a06b6d950542cba64
tests/qtest: qmp-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-17-bmeng.cn@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/qmp-test.c