qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC v12 43/65] tests: device-introspect-test: cope with ARM TCG-onl


From: Richard Henderson
Subject: Re: [RFC v12 43/65] tests: device-introspect-test: cope with ARM TCG-only devices
Date: Sun, 28 Mar 2021 11:25:47 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/26/21 1:36 PM, Claudio Fontana wrote:
+#ifndef CONFIG_TCG
+    {
+        const char *arch = qtest_get_arch();
+        if (strcmp(arch, "arm") == 0 || strcmp(arch, "aarch64") == 0) {
+            goto add_machine_test_done;
+        }
+    }
+#endif /* !CONFIG_TCG */
      if (g_test_quick()) {
          qtest_add_data_func("device/introspect/concrete/defaults/none",
                              g_strdup(common_args), 
test_device_intro_concrete);
      } else {
          qtest_cb_for_every_machine(add_machine_test_case, true);
      }
+    goto add_machine_test_done;
+ add_machine_test_done:

Likewise with the ifdef and goto ugliness.

r~



reply via email to

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