Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys Adjust.
details: https://anonhg.NetBSD.org/src/rev/9b9dfea34b19
branches: trunk
changeset: 767270:9b9dfea34b19
user: jruoho <jruoho%NetBSD.org@localhost>
date: Thu Jul 14 04:59:14 2011 +0000
description:
Adjust.
diffstat:
tests/lib/libc/sys/t_getcontext.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (32 lines):
diff -r 3bb120ed8b51 -r 9b9dfea34b19 tests/lib/libc/sys/t_getcontext.c
--- a/tests/lib/libc/sys/t_getcontext.c Thu Jul 14 01:37:09 2011 +0000
+++ b/tests/lib/libc/sys/t_getcontext.c Thu Jul 14 04:59:14 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_getcontext.c,v 1.2 2011/07/07 07:27:49 jruoho Exp $ */
+/* $NetBSD: t_getcontext.c,v 1.3 2011/07/14 04:59:14 jruoho 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_getcontext.c,v 1.2 2011/07/07 07:27:49 jruoho Exp $");
+__RCSID("$NetBSD: t_getcontext.c,v 1.3 2011/07/14 04:59:14 jruoho Exp $");
#include <atf-c.h>
#include <errno.h>
@@ -81,13 +81,6 @@
ATF_TC_BODY(setcontext_err, tc)
{
- ucontext_t uc;
-
- uc.uc_link = NULL;
- uc.uc_flags = -1;
-
- errno = 0;
- ATF_REQUIRE_ERRNO(EINVAL, setcontext(&uc) == -1);
errno = 0;
ATF_REQUIRE_ERRNO(EFAULT, setcontext((void *)-1) == -1);
Home |
Main Index |
Thread Index |
Old Index