aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/fuzz-sb16-test.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2022-09-02 19:34:49 +0200
committerThomas Huth <thuth@redhat.com>2022-09-20 12:34:31 +0200
commit1dbea8185281f9c6c09a2fe8c333c6e26c5c741f (patch)
tree1feef1fc3a9215b51240dba5eea8ff61eed8bf1e /tests/qtest/fuzz-sb16-test.c
parent08ed0988d6d589a9cb4d092765bd8f2272d1e8e9 (diff)
downloadqemu-1dbea8185281f9c6c09a2fe8c333c6e26c5c741f.zip
qemu-1dbea8185281f9c6c09a2fe8c333c6e26c5c741f.tar.gz
qemu-1dbea8185281f9c6c09a2fe8c333c6e26c5c741f.tar.bz2
tests: sb16 has both pc and q35 tests
Check that the machines are compiled in before calling it Signed-off-by: Juan Quintela <quintela@redhat.com> Message-Id: <20220902173452.1904-6-quintela@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/fuzz-sb16-test.c')
-rw-r--r--tests/qtest/fuzz-sb16-test.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/qtest/fuzz-sb16-test.c b/tests/qtest/fuzz-sb16-test.c
index a65826b..add2a2a 100644
--- a/tests/qtest/fuzz-sb16-test.c
+++ b/tests/qtest/fuzz-sb16-test.c
@@ -57,9 +57,13 @@ int main(int argc, char **argv)
{
g_test_init(&argc, &argv, NULL);
- qtest_add_func("fuzz/test_fuzz_sb16/1c", test_fuzz_sb16_0x1c);
- qtest_add_func("fuzz/test_fuzz_sb16/91", test_fuzz_sb16_0x91);
- qtest_add_func("fuzz/test_fuzz_sb16/d4", test_fuzz_sb16_0xd4);
+ if (qtest_has_machine("q35")) {
+ qtest_add_func("fuzz/test_fuzz_sb16/1c", test_fuzz_sb16_0x1c);
+ }
+ if (qtest_has_machine("pc")) {
+ qtest_add_func("fuzz/test_fuzz_sb16/91", test_fuzz_sb16_0x91);
+ qtest_add_func("fuzz/test_fuzz_sb16/d4", test_fuzz_sb16_0xd4);
+ }
return g_test_run();
}