aboutsummaryrefslogtreecommitdiff
path: root/tests/q35-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/q35-test.c')
-rw-r--r--tests/q35-test.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/q35-test.c b/tests/q35-test.c
index cc58f3ecf4..6c21b402a7 100644
--- a/tests/q35-test.c
+++ b/tests/q35-test.c
@@ -42,6 +42,8 @@ static void test_smram_lock(void)
QPCIDevice *pcidev;
QDict *response;
+ qtest_start("-M q35");
+
pcibus = qpci_init_pc(NULL);
g_assert(pcibus != NULL);
@@ -74,19 +76,15 @@ static void test_smram_lock(void)
g_free(pcidev);
qpci_free_pc(pcibus);
+
+ qtest_end();
}
int main(int argc, char **argv)
{
- int ret;
-
g_test_init(&argc, &argv, NULL);
qtest_add_func("/q35/smram/lock", test_smram_lock);
- qtest_start("-M q35");
- ret = g_test_run();
- qtest_end();
-
- return ret;
+ return g_test_run();
}