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