freebsd-dev/contrib/netbsd-tests/kernel/t_extattrctl.c
Enji Cooper 57718be8fa Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
2014-10-02 23:26:49 +00:00

29 lines
428 B
C

#include <sys/types.h>
#include <rump/rump.h>
#include <rump/rump_syscalls.h>
#include <atf-c.h>
ATF_TC(extattrctl_namei);
ATF_TC_HEAD(extattrctl_namei, tc)
{
atf_tc_set_md_var(tc, "descr", "extattrctl namei safety (kern/43328)");
}
ATF_TC_BODY(extattrctl_namei, tc)
{
rump_init();
rump_sys_extattrctl("/anyfile", 0, "/", 0, 0);
}
ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tp, extattrctl_namei);
return atf_no_error();
}