Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libpthread Add missing pthread_mutex_init call in ...



details:   https://anonhg.NetBSD.org/src/rev/f4a96a1a7d1d
branches:  trunk
changeset: 756414:f4a96a1a7d1d
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Jul 16 18:16:43 2010 +0000

description:
Add missing pthread_mutex_init call in mutex3 testcase.

diffstat:

 tests/lib/libpthread/t_mutex.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 88e24f188dae -r f4a96a1a7d1d tests/lib/libpthread/t_mutex.c
--- a/tests/lib/libpthread/t_mutex.c    Fri Jul 16 17:49:38 2010 +0000
+++ b/tests/lib/libpthread/t_mutex.c    Fri Jul 16 18:16:43 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mutex.c,v 1.1 2010/07/16 15:42:53 jmmv Exp $ */
+/* $NetBSD: t_mutex.c,v 1.2 2010/07/16 18:16:43 njoly Exp $ */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_mutex.c,v 1.1 2010/07/16 15:42:53 jmmv Exp $");
+__RCSID("$NetBSD: t_mutex.c,v 1.2 2010/07/16 18:16:43 njoly Exp $");
 
 #include <pthread.h>
 #include <stdio.h>
@@ -179,6 +179,8 @@
 
        printf("1: Mutex-test 3\n");
 
+       PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
+
        global_x = 0;
        count = count2 = 10000000;
 



Home | Main Index | Thread Index | Old Index