aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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) {