]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/unit: test-qga: Avoid using hardcoded /tmp
authorBin Meng <bin.meng@windriver.com>
Sun, 25 Sep 2022 11:30:01 +0000 (19:30 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:20 +0000 (20:51 +0200)
commit5b9f2781c251aa0b98cf9a3b025b803a7e23e638
tree822bdf81caea4cb6b068e127f7d7e36b25e0fe6f
parente0e5b3dc0024f76a27b4643c4158cc5463713d9c
tests/unit: test-qga: 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-24-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/unit/test-qga.c