tests/qtest: libqtest: Avoid using hardcoded /tmp
commitb6dabc82b070850711881feaa0d8028ee7c396dc
authorBin Meng <bin.meng@windriver.com>
Sun, 25 Sep 2022 11:29:59 +0000 (25 19:29 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:20 +0000 (27 20:51 +0200)
treeb0ba910ff9d45c212048e71664d73840916db84e
parent28ea545b33f79dfd734d9a842a3a2cc9bf89d5e8
tests/qtest: libqtest: Avoid using hardcoded /tmp

The qtest library was written to use hardcoded /tmp directory for
temporary files. Update to use g_get_tmp_dir() and g_dir_make_tmp()
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-22-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/libqtest.c