Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libpthread Remove bogus check that (a) depends uni...
details: https://anonhg.NetBSD.org/src/rev/2f9b15042ea8
branches: trunk
changeset: 771996:2f9b15042ea8
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Dec 12 23:54:18 2011 +0000
description:
Remove bogus check that (a) depends uninitialised memory (b) overflows a
buffer.
diffstat:
tests/lib/libpthread/t_join.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (32 lines):
diff -r f5274a3c9a46 -r 2f9b15042ea8 tests/lib/libpthread/t_join.c
--- a/tests/lib/libpthread/t_join.c Mon Dec 12 20:55:44 2011 +0000
+++ b/tests/lib/libpthread/t_join.c Mon Dec 12 23:54:18 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_join.c,v 1.6 2011/08/22 00:35:07 dholland Exp $ */
+/* $NetBSD: t_join.c,v 1.7 2011/12/12 23:54:18 joerg 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.6 2011/08/22 00:35:07 dholland Exp $");
+__RCSID("$NetBSD: t_join.c,v 1.7 2011/12/12 23:54:18 joerg Exp $");
#include <errno.h>
#include <pthread.h>
@@ -103,13 +103,6 @@
ATF_REQUIRE_EQ(rv, 0);
/*
- * Try to join an invalid thread.
- */
- rv = pthread_join(thread[i + 1], NULL);
-
- ATF_REQUIRE_EQ(rv, ESRCH);
-
- /*
* Check join and exit condition.
*/
PTHREAD_REQUIRE(pthread_join(thread[i], &val));
Home |
Main Index |
Thread Index |
Old Index