]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Drop DO_TEST_LINUX()
authorAndrea Bolognani <abologna@redhat.com>
Wed, 2 May 2018 15:37:59 +0000 (17:37 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 3 May 2018 16:23:30 +0000 (18:23 +0200)
Now that mocking NUMA information works on FreeBSD, there are
no longer any test cases that need to be restricted to Linux
only.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemuxml2argvtest.c

index fe2cca450b6500e387e3a3cb668e65751ec3afef..8ef77018b10b425dc9ddec6b73790e0f78c88f30 100644 (file)
@@ -767,24 +767,6 @@ mymain(void)
                  FLAG_EXPECT_PARSE_ERROR | FLAG_EXPECT_FAILURE, \
                  parseFlags, GIC_NONE, __VA_ARGS__)
 
-# define DO_TEST_LINUX(name, ...) \
-    DO_TEST_LINUX_FULL(name, NULL, -1, 0, 0, GIC_NONE, __VA_ARGS__)
-
-# ifdef __linux__
-    /* This is a macro that invokes test only on Linux. It's
-     * meant to be called in those cases where qemuxml2argvmock
-     * cooperation is expected (e.g. we need a fixed time,
-     * predictable NUMA topology and so on). On non-Linux
-     * platforms the macro just consume its argument. */
-#  define DO_TEST_LINUX_FULL(name, ...) \
-    DO_TEST_FULL(name, __VA_ARGS__)
-# else  /* __linux__ */
-#  define DO_TEST_LINUX_FULL(name, ...) \
-    do { \
-        const char *tmp ATTRIBUTE_UNUSED = name; \
-    } while (0)
-# endif /* __linux__ */
-
 # define NONE QEMU_CAPS_LAST
 
     /* Unset or set all envvars here that are copied in qemudBuildCommandLine
@@ -935,16 +917,16 @@ mymain(void)
             QEMU_CAPS_HDA_DUPLEX, QEMU_CAPS_USB_REDIR,
             QEMU_CAPS_DEVICE_PC_DIMM,
             QEMU_CAPS_OBJECT_MEMORY_FILE);
-    DO_TEST_LINUX("hugepages-pages",
-                  QEMU_CAPS_OBJECT_MEMORY_RAM,
-                  QEMU_CAPS_OBJECT_MEMORY_FILE);
+    DO_TEST("hugepages-pages",
+            QEMU_CAPS_OBJECT_MEMORY_RAM,
+            QEMU_CAPS_OBJECT_MEMORY_FILE);
     DO_TEST("hugepages-pages2", QEMU_CAPS_OBJECT_MEMORY_RAM,
             QEMU_CAPS_OBJECT_MEMORY_FILE);
     DO_TEST("hugepages-pages3", QEMU_CAPS_OBJECT_MEMORY_RAM,
             QEMU_CAPS_OBJECT_MEMORY_FILE);
-    DO_TEST_LINUX("hugepages-shared",
-                  QEMU_CAPS_OBJECT_MEMORY_RAM,
-                  QEMU_CAPS_OBJECT_MEMORY_FILE);
+    DO_TEST("hugepages-shared",
+            QEMU_CAPS_OBJECT_MEMORY_RAM,
+            QEMU_CAPS_OBJECT_MEMORY_FILE);
     DO_TEST_PARSE_ERROR("hugepages-memaccess-invalid", NONE);
     DO_TEST_FAILURE("hugepages-pages4",
             QEMU_CAPS_OBJECT_MEMORY_RAM, QEMU_CAPS_OBJECT_MEMORY_FILE);
@@ -1562,9 +1544,9 @@ mymain(void)
     DO_TEST_FULL("restore-v2-fd", "fd:7", 7, 0, 0, GIC_NONE, NONE);
     DO_TEST_FULL("migrate", "tcp:10.0.0.1:5000", -1, 0, 0, GIC_NONE, NONE);
 
-    DO_TEST_LINUX_FULL("migrate-numa-unaligned", "stdio", 7, 0, 0, GIC_NONE,
-                       QEMU_CAPS_NUMA,
-                       QEMU_CAPS_OBJECT_MEMORY_RAM);
+    DO_TEST_FULL("migrate-numa-unaligned", "stdio", 7, 0, 0, GIC_NONE,
+                 QEMU_CAPS_NUMA,
+                 QEMU_CAPS_OBJECT_MEMORY_RAM);
 
     DO_TEST("qemu-ns", NONE);
     DO_TEST("qemu-ns-no-env", NONE);
@@ -1662,12 +1644,14 @@ mymain(void)
 
     DO_TEST("numatune-memory", NONE);
     DO_TEST_PARSE_ERROR("numatune-memory-invalid-nodeset", NONE);
-    DO_TEST_LINUX("numatune-memnode", QEMU_CAPS_NUMA,
-                  QEMU_CAPS_OBJECT_MEMORY_RAM);
+    DO_TEST("numatune-memnode",
+            QEMU_CAPS_NUMA,
+            QEMU_CAPS_OBJECT_MEMORY_RAM);
     DO_TEST_FAILURE("numatune-memnode", NONE);
 
-    DO_TEST_LINUX("numatune-memnode-no-memory", QEMU_CAPS_NUMA,
-                  QEMU_CAPS_OBJECT_MEMORY_RAM);
+    DO_TEST("numatune-memnode-no-memory",
+            QEMU_CAPS_NUMA,
+            QEMU_CAPS_OBJECT_MEMORY_RAM);
     DO_TEST_FAILURE("numatune-memnode-no-memory", NONE);
 
     DO_TEST("numatune-distances", QEMU_CAPS_NUMA, QEMU_CAPS_NUMA_DIST);