qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH v3 21/28] tests/qtest: Skip tests that depend on TCG when


From: Richard Henderson
Subject: Re: [RFC PATCH v3 21/28] tests/qtest: Skip tests that depend on TCG when CONFIG_TCG=n
Date: Fri, 13 Jan 2023 12:09:05 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 1/13/23 06:04, Fabiano Rosas wrote:
@@ -373,6 +387,11 @@ static void sve_tests_sve_off(const void *data)
  {
      QTestState *qts;
+ if (tcg_disabled()) {
+        g_test_skip("TCG support is disabled in this build");
+        return;
+    }
+
      qts = qtest_init(MACHINE "-cpu max,sve=off");
/* SVE is off, so the map should be empty. */

This should work with kvm as well.
It should always be ok to turn off an unsupported feature.


r~



reply via email to

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