From d455ff92da0249e731cff7613f42b0f7359775da Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 13 Sep 2019 16:41:45 +0200 Subject: Fix block processor unit tests for case where pthreads is disabled Signed-off-by: David Oberhollenzer --- tests/blk_proc_order.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/blk_proc_order.c b/tests/blk_proc_order.c index 9157262..18ea54d 100644 --- a/tests/blk_proc_order.c +++ b/tests/blk_proc_order.c @@ -65,7 +65,9 @@ static pthread_t main_thread; static int block_callback(void *user, sqfs_block_t *blk) { +#ifdef HAVE_PTHREAD assert(main_thread == pthread_self()); +#endif assert(blk->index == blk_index++); if (blk->index == 4) { -- cgit v1.2.3