tests/qtest: i440fx-test: Rewrite create_blob_file() to be portable
commit3039fd4b6e9b80ab35b34493181202a22b952812
authorBin Meng <bin.meng@windriver.com>
Sun, 25 Sep 2022 11:29:39 +0000 (25 19:29 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:20 +0000 (27 20:51 +0200)
treef96f3fe57dd2da81b3eab634c92df64e064f0ab4
parentdbc4f48b5ab3e6d85f78aa4df6bd6ad561c3d152
tests/qtest: i440fx-test: Rewrite create_blob_file() to be portable

Previously request_{bios, pflash} cases were skipped on win32, mainly
due to create_blob_file() calling mmap() which does not exist on win32.
This rewirtes create_blob_file() to be portable, so that we can enable
these cases on Windows.

Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220925113032.1949844-2-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/i440fx-test.c