qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 20/51] tests/qtest: i440fx-test: Skip running request_{bios,p


From: Thomas Huth
Subject: Re: [PATCH 20/51] tests/qtest: i440fx-test: Skip running request_{bios,pflash} for win32
Date: Thu, 25 Aug 2022 13:40:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

On 24/08/2022 11.39, Bin Meng wrote:
From: Bin Meng <bin.meng@windriver.com>

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>
---

  tests/qtest/i440fx-test.c | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/tests/qtest/i440fx-test.c b/tests/qtest/i440fx-test.c
index 6d7d4d8d8f..3890f1237c 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();
  }

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]