aboutsummaryrefslogtreecommitdiff
path: root/tests/rtas-test.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2017-09-11 12:19:58 -0500
committerThomas Huth <thuth@redhat.com>2018-02-14 11:43:41 +0100
commit9b67af76dbe62960794055a732f1e47680621192 (patch)
treec4e29d7b40462befc25f27006a1ad8c90ba8a406 /tests/rtas-test.c
parent05e520f1c7f6ac7a142c616883e00c8924e81331 (diff)
libqos: Use explicit QTestState for rtas operations
Drop one more client of global_qtest by teaching all rtas test functionality to pass in an explicit QTestState, adjusting all callers. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> [thuth: Use nicer indentation in rtas.h] Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/rtas-test.c')
-rw-r--r--tests/rtas-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rtas-test.c b/tests/rtas-test.c
index 276c87ef84..34a692163f 100644
--- a/tests/rtas-test.c
+++ b/tests/rtas-test.c
@@ -16,7 +16,7 @@ static void test_rtas_get_time_of_day(void)
qs = qtest_spapr_boot("-machine pseries");
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 */