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 build failure on AMD64, noted by nj...
details: https://anonhg.NetBSD.org/src/rev/932e391b44bc
branches: trunk
changeset: 756702:932e391b44bc
user: jruoho <jruoho%NetBSD.org@localhost>
date: Thu Jul 29 12:03:10 2010 +0000
description:
Fix build failure on AMD64, noted by njoly@.
diffstat:
tests/lib/libpthread/t_join.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (49 lines):
diff -r 36c7aff93cdb -r 932e391b44bc tests/lib/libpthread/t_join.c
--- a/tests/lib/libpthread/t_join.c Thu Jul 29 12:01:21 2010 +0000
+++ b/tests/lib/libpthread/t_join.c Thu Jul 29 12:03:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_join.c,v 1.1 2010/07/28 21:29:15 jruoho Exp $ */
+/* $NetBSD: t_join.c,v 1.2 2010/07/29 12:03:10 jruoho Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_join.c,v 1.1 2010/07/28 21:29:15 jruoho Exp $");
+__RCSID("$NetBSD: t_join.c,v 1.2 2010/07/29 12:03:10 jruoho Exp $");
#include <errno.h>
#include <pthread.h>
@@ -64,7 +64,7 @@
{
pthread_t thread[25];
pthread_t caller;
- void *val = NULL;
+ void *val;
size_t i;
int rv;
@@ -102,11 +102,9 @@
*/
PTHREAD_REQUIRE(pthread_join(thread[i], &val));
+ ATF_REQUIRE(val == NULL);
ATF_REQUIRE_EQ(error, false);
- ATF_REQUIRE(val != NULL);
- ATF_REQUIRE(val == (void *)(i + 1));
-
/*
* Once the thread has returned, ESRCH should
* again follow if we try to join it again.
@@ -139,7 +137,7 @@
if (i++ == j)
error = false;
- pthread_exit((void *)i);
+ pthread_exit(NULL);
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index