Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel test extattrctl kernel panic (kern/43328)
details: https://anonhg.NetBSD.org/src/rev/03766e4bef02
branches: trunk
changeset: 755057:03766e4bef02
user: pooka <pooka%NetBSD.org@localhost>
date: Fri May 21 16:47:45 2010 +0000
description:
test extattrctl kernel panic (kern/43328)
diffstat:
tests/kernel/Makefile | 4 +++-
tests/kernel/t_extattrctl.c | 28 ++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletions(-)
diffs (54 lines):
diff -r 0a75ad63da01 -r 03766e4bef02 tests/kernel/Makefile
--- a/tests/kernel/Makefile Fri May 21 14:28:44 2010 +0000
+++ b/tests/kernel/Makefile Fri May 21 16:47:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/12/08 15:20:20 uebayasi Exp $
+# $NetBSD: Makefile,v 1.4 2010/05/21 16:47:45 pooka Exp $
NOMAN= # defined
@@ -18,10 +18,12 @@
TESTS_C+= t_time
TESTS_C+= t_ucontext
TESTS_C+= t_writev
+TESTS_C+= t_extattrctl
TESTS_SH= t_umount
LDADD.t_rnd+= -lrumpvfs -lrumpdev_rnd -lrumpdev -lrump -lrumpuser -lpthread
+LDADD.t_extattrctl+= -lrumpvfs -lrump -lrumpuser -lpthread
.PATH: ${NETBSDSRCDIR}/sys/kern
TESTS_C+= t_extent
diff -r 0a75ad63da01 -r 03766e4bef02 tests/kernel/t_extattrctl.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/kernel/t_extattrctl.c Fri May 21 16:47:45 2010 +0000
@@ -0,0 +1,28 @@
+#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();
+}
Home |
Main Index |
Thread Index |
Old Index