aboutsummaryrefslogtreecommitdiff
path: root/tests/ptimer-test-stubs.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-09-19 16:18:42 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2017-09-19 16:19:39 +0200
commit9ee24e98d31f1eb2fbd63f911d68f76ccec531a9 (patch)
tree2813fd58bebe6dc3da8c11466cacfdee64c2837d /tests/ptimer-test-stubs.c
parent288cb9490ba13e0572e44a67df8c9c2f703c7847 (diff)
ptimer-test: do not link to libqemustub.a/libqemuutil.a
This test provides its own mocks, so do not use the "standard" stubs in libqemustub.a or the event loop implementation in libqemuutil.a. This is required on OS X, which otherwise brings in qemu-timer.o, async.o and main-loop.o from libqemuutil.a. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/ptimer-test-stubs.c')
-rw-r--r--tests/ptimer-test-stubs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ptimer-test-stubs.c b/tests/ptimer-test-stubs.c
index 8a1b0a336c..ca5cc3b13b 100644
--- a/tests/ptimer-test-stubs.c
+++ b/tests/ptimer-test-stubs.c
@@ -30,6 +30,10 @@ QEMUTimerListGroup main_loop_tlg;
int64_t ptimer_test_time_ns;
+/* Do not artificially limit period - see hw/core/ptimer.c. */
+int use_icount = 1;
+bool qtest_allowed;
+
void timer_init_tl(QEMUTimer *ts,
QEMUTimerList *timer_list, int scale,
QEMUTimerCB *cb, void *opaque)