OSDN Git Service

tests/qtest: hd-geo-test: Avoid using hardcoded /tmp
authorBin Meng <bin.meng@windriver.com>
Tue, 27 Sep 2022 11:05:50 +0000 (19:05 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:21 +0000 (20:51 +0200)
commit52ca92d6d7b287e3d1b326168f57fc00ebd47b64
treec1eb8b33c941525691e563569e27d67ee373fb16
parent9bcc0f7de7a6a04bd184ac4a1dbcbc3ccd53a6c0
tests/qtest: hd-geo-test: Avoid using hardcoded /tmp

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

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20220927110632.1973965-13-bmeng.cn@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/hd-geo-test.c