aboutsummaryrefslogtreecommitdiff
path: root/tests/rtas-test.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-11-29 12:37:04 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-07 17:28:07 +0100
commiteb5937bad691ed18a401079a0604aa11fea0ecdd (patch)
treea26310ca140c15230c51cceeebc538f7f55b7888 /tests/rtas-test.c
parent143e6db6fa4ecd2a85de740cc3754aeb86d1e802 (diff)
downloadqemu-eb5937bad691ed18a401079a0604aa11fea0ecdd.zip
qemu-eb5937bad691ed18a401079a0604aa11fea0ecdd.tar.gz
qemu-eb5937bad691ed18a401079a0604aa11fea0ecdd.tar.bz2
tests/libqos: embed allocators instead of malloc-ing them separately
qgraph will embed these objects instead of allocating them in a separate object. Expose a new API "generic_alloc_init" and "generic_alloc_destroy" for that, and rename the existing API with s/init/new/ and s/uninit/free/. Signed-off-by: Paolo Bonzini <pbonzini@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 009bda6..ee88867 100644
--- a/tests/rtas-test.c
+++ b/tests/rtas-test.c
@@ -17,7 +17,7 @@ static void test_rtas_get_time_of_day(void)
global_qtest = qs->qts;
t1 = time(NULL);
- ret = qrtas_get_time_of_day(qs->qts, 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 */