From f3c90ac4c9078fa0ee0b7a59656a4abc47db9d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Mon, 3 Mar 2014 22:48:31 +0100 Subject: [PATCH] Fix `pthread_mutex_lock()` check in test_pthread_cooperation --- tests/test_pthread_cooperation/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pthread_cooperation/main.c b/tests/test_pthread_cooperation/main.c index 4a0d01128e..f7208f0145 100644 --- a/tests/test_pthread_cooperation/main.c +++ b/tests/test_pthread_cooperation/main.c @@ -35,7 +35,7 @@ void *run(void *parameter) int err = pthread_mutex_lock(&mtx); - if (err != 1) { + if (err != 0) { printf("[!!!] pthread_mutex_lock failed with %d\n", err); return NULL; }