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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qtest/rtl8139-test.c b/tests/qtest/rtl8139-test.c
index 1beb83805c..4bd240e9ee 100644
--- a/tests/qtest/rtl8139-test.c
+++ b/tests/qtest/rtl8139-test.c
@@ -207,9 +207,10 @@ int main(int argc, char **argv)
         verbosity_level = atoi(v_env);
     }
 
+    g_test_init(&argc, &argv, NULL);
+
     qtest_start("-device rtl8139");
 
-    g_test_init(&argc, &argv, NULL);
     qtest_add_func("/rtl8139/nop", nop);
     qtest_add_func("/rtl8139/timer", test_init);