]> Git Repo - qemu.git/blobdiff - tests/rtas-test.c
spice: use a default name for the server
[qemu.git] / tests / rtas-test.c
index 73c780339b1836b38bd32cdb1045557ad76ba952..009bda6d23313b21c0b0aca6d6ab19ee8b1e9a2f 100644 (file)
@@ -14,15 +14,15 @@ static void test_rtas_get_time_of_day(void)
     time_t t1, t2;
 
     qs = qtest_spapr_boot("-machine pseries");
-    g_assert(qs != NULL);
+    global_qtest = qs->qts;
 
     t1 = time(NULL);
-    ret = qrtas_get_time_of_day(qs->alloc, &tm, &ns);
+    ret = qrtas_get_time_of_day(qs->qts, qs->alloc, &tm, &ns);
     g_assert_cmpint(ret, ==, 0);
     t2 = mktimegm(&tm);
     g_assert(t2 - t1 < 5); /* 5 sec max to run the test */
 
-    qtest_spapr_shutdown(qs);
+    qtest_shutdown(qs);
 }
 
 int main(int argc, char *argv[])
This page took 0.020464 seconds and 4 git commands to generate.