summary refs log tree commit diff stats
path: root/tests/qtest/rtl8139-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtest/rtl8139-test.c')
-rw-r--r--tests/qtest/rtl8139-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qtest/rtl8139-test.c b/tests/qtest/rtl8139-test.c
index 4bd240e9ee..4dc0a0d22e 100644
--- a/tests/qtest/rtl8139-test.c
+++ b/tests/qtest/rtl8139-test.c
@@ -209,6 +209,10 @@ int main(int argc, char **argv)
 
     g_test_init(&argc, &argv, NULL);
 
+    if (!qtest_has_device("rtl8139")) {
+        return 0;
+    }
+
     qtest_start("-device rtl8139");
 
     qtest_add_func("/rtl8139/nop", nop);