Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/rump/rumpkern check that curlwp for an implicit contex...



details:   https://anonhg.NetBSD.org/src/rev/0679c2c9c48d
branches:  trunk
changeset: 757530:0679c2c9c48d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Sep 02 09:57:34 2010 +0000

description:
check that curlwp for an implicit context is NULL

diffstat:

 tests/rump/rumpkern/t_lwproc.c |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 728eb1f6c302 -r 0679c2c9c48d tests/rump/rumpkern/t_lwproc.c
--- a/tests/rump/rumpkern/t_lwproc.c    Thu Sep 02 08:58:06 2010 +0000
+++ b/tests/rump/rumpkern/t_lwproc.c    Thu Sep 02 09:57:34 2010 +0000
@@ -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();
 }



Home | Main Index | Thread Index | Old Index