Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libpthread fix typos



details:   https://anonhg.NetBSD.org/src/rev/b25645c57fa7
branches:  trunk
changeset: 818784:b25645c57fa7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 31 16:23:03 2016 +0000

description:
fix typos

diffstat:

 tests/lib/libpthread/t_mutex.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r b4285d64d62e -r b25645c57fa7 tests/lib/libpthread/t_mutex.c
--- a/tests/lib/libpthread/t_mutex.c    Mon Oct 31 16:21:23 2016 +0000
+++ b/tests/lib/libpthread/t_mutex.c    Mon Oct 31 16:23:03 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mutex.c,v 1.12 2016/10/31 16:21:23 christos Exp $ */
+/* $NetBSD: t_mutex.c,v 1.13 2016/10/31 16:23:03 christos 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.12 2016/10/31 16:21:23 christos Exp $");
+__RCSID("$NetBSD: t_mutex.c,v 1.13 2016/10/31 16:23:03 christos Exp $");
 
 #include <pthread.h>
 #include <stdio.h>
@@ -591,7 +591,7 @@
 
        PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
 
-       printf("Before acquiring timed-mutex\n");
+       printf("Before acquiring regular mutex\n");
        PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
 
        printf("Before endeavor to reacquire timed-mutex (timeout expected)\n");
@@ -612,14 +612,14 @@
 ATF_TC_BODY(timedmutex2, tc)
 {
 
-       printf("Timed mutex-test 1\n");
+       printf("Timed mutex-test 2\n");
 
        PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
 
        printf("Before acquiring timed-mutex with timedlock\n");
        PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
 
-       printf("Before endavor to reacquire timed-mutex (timeout expected)\n");
+       printf("Before endeavor to reacquire timed-mutex (timeout expected)\n");
        PTHREAD_REQUIRE_STATUS(mutex_lock(&mutex, &ts_shortlived),
            ETIMEDOUT);
 



Home | Main Index | Thread Index | Old Index