summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/pthread/mutex_islocked_np/mutex_islocked_np.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/pthread/mutex_islocked_np/mutex_islocked_np.c b/tools/regression/pthread/mutex_islocked_np/mutex_islocked_np.c
index 3e467a1..5ab7e33 100644
--- a/tools/regression/pthread/mutex_islocked_np/mutex_islocked_np.c
+++ b/tools/regression/pthread/mutex_islocked_np/mutex_islocked_np.c
@@ -37,8 +37,8 @@ thread(void *arg)
{
pthread_mutex_t *mtx = arg;
- if (pthread_mutex_islocked_np(mtx) == 0) {
- printf("pthread_mutex_islocked_np() returned zero\n"
+ if (pthread_mutex_islocked_np(mtx) != 0) {
+ printf("pthread_mutex_islocked_np() returned non-zero\n"
"for a mutex held by another thread\n");
exit(1);
}
OpenPOWER on IntegriCloud