summaryrefslogtreecommitdiff
path: root/tests/lib/libpthread/t_join.c
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-12-12 23:54:18 +0000
committerjoerg <joerg@NetBSD.org>2011-12-12 23:54:18 +0000
commit52372f0e042f73ae48c3c4312e8bea7f10c3fbdf (patch)
tree8262bab2edb0086ce19c006358f74a6773c27046 /tests/lib/libpthread/t_join.c
parentadcd8ec6e5436a1219ffc5806ed6ee04b9709993 (diff)
Remove bogus check that (a) depends uninitialised memory (b) overflows a
buffer.
Diffstat (limited to 'tests/lib/libpthread/t_join.c')
-rw-r--r--tests/lib/libpthread/t_join.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/lib/libpthread/t_join.c b/tests/lib/libpthread/t_join.c
index 78f9758ad66..d0233e6784f 100644
--- a/tests/lib/libpthread/t_join.c
+++ b/tests/lib/libpthread/t_join.c
@@ -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 @@ threadfunc1(void *arg)
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));