From 70b87de26ea42842afd7c9f36c1e02bfc84f6511 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 13 May 2018 12:55:31 +0200 Subject: [PATCH] io: fix unit test --- tests/unit/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/io.c b/tests/unit/io.c index 2d4e223af..4abdc57a2 100644 --- a/tests/unit/io.c +++ b/tests/unit/io.c @@ -181,9 +181,9 @@ ParameterizedTest(char *fmt, io, lowlevel) struct format_type *f; struct pool p = { .state = STATE_DESTROYED }; + struct io io = { .state = STATE_DESTROYED }; struct sample *smps[NUM_SAMPLES]; struct sample *smpt[NUM_SAMPLES]; - struct io io; ret = pool_init(&p, 2 * NUM_SAMPLES, SAMPLE_LEN(NUM_VALUES), &memtype_hugepage); cr_assert_eq(ret, 0); @@ -223,9 +223,9 @@ ParameterizedTest(char *fmt, io, highlevel) int ret, cnt; char *retp; - struct io io; struct format_type *f; + struct io io = { .state = STATE_DESTROYED }; struct pool p = { .state = STATE_DESTROYED }; struct sample *smps[NUM_SAMPLES]; struct sample *smpt[NUM_SAMPLES];