summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-13 16:41:45 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-13 16:43:43 +0200
commitd455ff92da0249e731cff7613f42b0f7359775da (patch)
tree4b524f84f8e6c905497ee52e9ce8e87f521a8851
parent82b943d4d6b5895f7c07be24802c3d7ec9069dae (diff)
Fix block processor unit tests for case where pthreads is disabled
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--tests/blk_proc_order.c2
1 files changed, 2 insertions, 0 deletions
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) {