From 97bd99e18103ad3a389b509898b2f952b62144e8 Mon Sep 17 00:00:00 2001 From: Petr Rockai <me@mornfall.net> Date: Mon, 22 Jul 2019 22:11:10 +0000 Subject: [PATCH] test: Add a missing mutex unlock to a pthread_cancel() test. --- test/pthread/pts-int/pthread_cancel/pts-1-3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/pthread/pts-int/pthread_cancel/pts-1-3.c b/test/pthread/pts-int/pthread_cancel/pts-1-3.c index f4fae420d..642184225 100644 --- a/test/pthread/pts-int/pthread_cancel/pts-1-3.c +++ b/test/pthread/pts-int/pthread_cancel/pts-1-3.c @@ -73,6 +73,8 @@ void *a_thread_func(void *dummy) return (void*)PTS_UNRESOLVED; } + pthread_mutex_unlock(&mutex); + /* Should get here if the cancel request was deffered. */ pthread_cleanup_pop(0); cleanup_flag=1; -- GitLab