Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/syscall fix test for new-world rump lwp usage
details: https://anonhg.NetBSD.org/src/rev/583395e34683
branches: trunk
changeset: 748183:583395e34683
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Oct 15 16:47:23 2009 +0000
description:
fix test for new-world rump lwp usage
diffstat:
tests/syscall/t_cmsg.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 963b062c39cf -r 583395e34683 tests/syscall/t_cmsg.c
--- a/tests/syscall/t_cmsg.c Thu Oct 15 16:46:37 2009 +0000
+++ b/tests/syscall/t_cmsg.c Thu Oct 15 16:47:23 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cmsg.c,v 1.8 2009/10/14 18:22:50 pooka Exp $ */
+/* $NetBSD: t_cmsg.c,v 1.9 2009/10/15 16:47:23 pooka Exp $ */
#include <sys/types.h>
#include <sys/mount.h>
@@ -104,6 +104,9 @@
if (rump_sys_mount(MOUNT_TMPFS, "/", 0, &args, sizeof(args)) == -1)
atf_tc_fail_errno("mount tmpfs");
+ /* store our current lwp/proc */
+ l1 = rump_pub_newproc_switch();
+
/* create unix socket and bind it to a path */
memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_LOCAL;
@@ -117,9 +120,6 @@
if (rump_sys_listen(s1, 1) == -1)
atf_tc_fail_errno("socket 1 listen");
- /* store our current lwp/proc */
- l1 = rump_pub_get_curlwp();
-
/* create new process */
l2 = rump_pub_newproc_switch();
@@ -166,7 +166,7 @@
atf_tc_fail_errno("sendmsg failed");
/* switch back to original proc */
- rump_set_curlwp(l1);
+ rump_pub_lwp_switch(l1);
/* accept connection and read fd */
sl = sizeof(sun);
Home |
Main Index |
Thread Index |
Old Index