aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/i440fx-test.c
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2022-08-24 17:39:58 +0800
committerThomas Huth <thuth@redhat.com>2022-08-25 15:24:09 +0200
commit8b1525b702448396fa3e1b61ff05ae029e367dae (patch)
treeecefe97e5cde761c3e4fb8d83d371e86e47e22ed /tests/qtest/i440fx-test.c
parent84efa8aa4e7c568c996b9575947474c734f128b3 (diff)
downloadqemu-8b1525b702448396fa3e1b61ff05ae029e367dae.zip
qemu-8b1525b702448396fa3e1b61ff05ae029e367dae.tar.gz
qemu-8b1525b702448396fa3e1b61ff05ae029e367dae.tar.bz2
tests/qtest: i440fx-test: Skip running request_{bios, pflash} for win32
The request_{bios,pflash} test cases call mmap() which does not exist on win32. Exclude them. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220824094029.1634519-21-bmeng.cn@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/i440fx-test.c')
-rw-r--r--tests/qtest/i440fx-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qtest/i440fx-test.c b/tests/qtest/i440fx-test.c
index 6d7d4d8..3890f12 100644
--- a/tests/qtest/i440fx-test.c
+++ b/tests/qtest/i440fx-test.c
@@ -278,6 +278,8 @@ static void test_i440fx_pam(gconstpointer opaque)
qtest_end();
}
+#ifndef _WIN32
+
#define BLOB_SIZE ((size_t)65536)
#define ISA_BIOS_MAXSZ ((size_t)(128 * 1024))
@@ -396,6 +398,8 @@ static void request_pflash(FirmwareTestFixture *fixture,
fixture->is_bios = false;
}
+#endif /* _WIN32 */
+
int main(int argc, char **argv)
{
TestData data;
@@ -406,8 +410,10 @@ int main(int argc, char **argv)
qtest_add_data_func("i440fx/defaults", &data, test_i440fx_defaults);
qtest_add_data_func("i440fx/pam", &data, test_i440fx_pam);
+#ifndef _WIN32
add_firmware_test("i440fx/firmware/bios", request_bios);
add_firmware_test("i440fx/firmware/pflash", request_pflash);
+#endif
return g_test_run();
}