1 /* $NetBSD: t_raw.c,v 1.1 2011/01/11 10:51:45 pooka Exp $ */
3 #include <sys/socket.h>
10 #include <rump/rump.h>
11 #include <rump/rump_syscalls.h>
15 #include "../../h_macros.h"
18 ATF_TC_HEAD(PRU_SENSE, tc)
21 atf_tc_set_md_var(tc, "descr", "Biglock leak with PRU_SENSE on "
22 "raw sockets (PR kern/44369)");
25 ATF_TC_BODY(PRU_SENSE, tc)
31 RL(s = rump_sys_socket(PF_ROUTE, SOCK_RAW, 0));
32 /* call PRU_SENSE. unfixed bug causes panic in rump_unschedule() */
33 RL(rump_sys_fstat(s, &sb));
39 ATF_TP_ADD_TC(tp, PRU_SENSE);
40 return atf_no_error();