From 9b67af76dbe62960794055a732f1e47680621192 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 11 Sep 2017 12:19:58 -0500 Subject: 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 Reviewed-by: Thomas Huth [thuth: Use nicer indentation in rtas.h] Signed-off-by: Thomas Huth --- tests/rtas-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/rtas-test.c') 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 */ -- cgit v1.2.3