xref: /freebsd/contrib/netbsd-tests/kernel/t_extattrctl.c (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1 #include <sys/types.h>
2 
3 #include <rump/rump.h>
4 #include <rump/rump_syscalls.h>
5 
6 #include <atf-c.h>
7 
8 ATF_TC(extattrctl_namei);
9 ATF_TC_HEAD(extattrctl_namei, tc)
10 {
11 
12 	atf_tc_set_md_var(tc, "descr", "extattrctl namei safety (kern/43328)");
13 }
14 
15 ATF_TC_BODY(extattrctl_namei, tc)
16 {
17 
18 	rump_init();
19 
20 	rump_sys_extattrctl("/anyfile", 0, "/", 0, 0);
21 }
22 
23 ATF_TP_ADD_TCS(tp)
24 {
25 	ATF_TP_ADD_TC(tp, extattrctl_namei);
26 
27 	return atf_no_error();
28 }
29