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