Module Name:    src
Committed By:   pooka
Date:           Thu Sep  2 09:57:34 UTC 2010

Modified Files:
        src/tests/rump/rumpkern: t_lwproc.c

Log Message:
check that curlwp for an implicit context is NULL


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/rump/rumpkern/t_lwproc.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/rump/rumpkern/t_lwproc.c
diff -u src/tests/rump/rumpkern/t_lwproc.c:1.1 src/tests/rump/rumpkern/t_lwproc.c:1.2
--- src/tests/rump/rumpkern/t_lwproc.c:1.1	Wed Sep  1 21:18:14 2010
+++ src/tests/rump/rumpkern/t_lwproc.c	Thu Sep  2 09:57:34 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_lwproc.c,v 1.1 2010/09/01 21:18:14 pooka Exp $	*/
+/*	$NetBSD: t_lwproc.c,v 1.2 2010/09/02 09:57:34 pooka Exp $	*/
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -205,6 +205,21 @@
 	}
 }
 
+ATF_TC(nolwp);
+ATF_TC_HEAD(nolwp, tc)
+{
+
+	atf_tc_set_md_var(tc, "descr", "check that curlwp for an implicit "
+	    "context is NULL");
+}
+
+ATF_TC_BODY(nolwp, tc)
+{
+
+	rump_init();
+	ATF_REQUIRE_EQ(rump_pub_lwproc_curlwp(), NULL);
+}
+
 ATF_TP_ADD_TCS(tp)
 {
 
@@ -213,6 +228,7 @@
 	ATF_TP_ADD_TC(tp, inherit);
 	ATF_TP_ADD_TC(tp, lwps);
 	ATF_TP_ADD_TC(tp, nolwprelease);
+	ATF_TP_ADD_TC(tp, nolwp);
 
 	return atf_no_error();
 }

Reply via email to