]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/unit: test-image-locking: Avoid using hardcoded /tmp
authorBin Meng <bin.meng@windriver.com>
Sun, 25 Sep 2022 11:30:00 +0000 (19:30 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:20 +0000 (20:51 +0200)
commite0e5b3dc0024f76a27b4643c4158cc5463713d9c
tree0ce5934398d26356d5da34b3fff4bb26ca713378
parentb6dabc82b070850711881feaa0d8028ee7c396dc
tests/unit: test-image-locking: 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>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220925113032.1949844-23-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/unit/test-image-locking.c