Module Name:    src
Committed By:   jruoho
Date:           Thu Jul 14 04:59:14 UTC 2011

Modified Files:
        src/tests/lib/libc/sys: t_getcontext.c

Log Message:
Adjust.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_getcontext.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_getcontext.c
diff -u src/tests/lib/libc/sys/t_getcontext.c:1.2 src/tests/lib/libc/sys/t_getcontext.c:1.3
--- src/tests/lib/libc/sys/t_getcontext.c:1.2	Thu Jul  7 07:27:49 2011
+++ src/tests/lib/libc/sys/t_getcontext.c	Thu Jul 14 04:59:14 2011
@@ -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);

Reply via email to