Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel xfail test for kernel panicky in PR kern/40688
details: https://anonhg.NetBSD.org/src/rev/22e596b48479
branches: trunk
changeset: 755921:22e596b48479
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Jun 28 19:03:59 2010 +0000
description:
xfail test for kernel panicky in PR kern/40688
diffstat:
tests/kernel/Atffile | 3 ++-
tests/kernel/Makefile | 4 ++--
tests/kernel/tty/Atffile | 6 ++++++
tests/kernel/tty/Makefile | 11 +++++++++++
tests/kernel/tty/t_pr.c | 41 +++++++++++++++++++++++++++++++++++++++++
5 files changed, 62 insertions(+), 3 deletions(-)
diffs (103 lines):
diff -r 0aaa5ecba71d -r 22e596b48479 tests/kernel/Atffile
--- a/tests/kernel/Atffile Mon Jun 28 17:48:54 2010 +0000
+++ b/tests/kernel/Atffile Mon Jun 28 19:03:59 2010 +0000
@@ -1,9 +1,10 @@
Content-Type: application/X-atf-atffile; version="1"
-X-NetBSD-Id: "$NetBSD: Atffile,v 1.2 2009/02/27 07:32:33 jmmv Exp $"
+X-NetBSD-Id: "$NetBSD: Atffile,v 1.3 2010/06/28 19:03:59 pooka Exp $"
prop: test-suite = "NetBSD"
tp: kqueue
+tp: tty
tp: t_extent
tp: t_lock
diff -r 0aaa5ecba71d -r 22e596b48479 tests/kernel/Makefile
--- a/tests/kernel/Makefile Mon Jun 28 17:48:54 2010 +0000
+++ b/tests/kernel/Makefile Mon Jun 28 19:03:59 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2010/05/21 16:47:45 pooka Exp $
+# $NetBSD: Makefile,v 1.5 2010/06/28 19:03:59 pooka Exp $
NOMAN= # defined
@@ -6,7 +6,7 @@
TESTSDIR= ${TESTSBASE}/kernel
-SUBDIR= kqueue
+SUBDIR= kqueue tty
TESTS_C= t_lock
TESTS_C+= t_lwpctl
diff -r 0aaa5ecba71d -r 22e596b48479 tests/kernel/tty/Atffile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/kernel/tty/Atffile Mon Jun 28 19:03:59 2010 +0000
@@ -0,0 +1,6 @@
+Content-Type: application/X-atf-atffile; version="1"
+X-NetBSD-Id: "$NetBSD: Atffile,v 1.1 2010/06/28 19:04:00 pooka Exp $"
+
+prop: test-suite = "NetBSD"
+
+tp: t_pr
diff -r 0aaa5ecba71d -r 22e596b48479 tests/kernel/tty/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/kernel/tty/Makefile Mon Jun 28 19:03:59 2010 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2010/06/28 19:04:00 pooka Exp $
+
+.include <bsd.own.mk>
+
+TESTSDIR= ${TESTSBASE}/kernel/tty
+
+TESTS_C= t_pr
+
+LDADD+= -lrumpkern_tty -lrumpvfs -lrump -lrumpuser -lpthread
+
+.include <bsd.test.mk>
diff -r 0aaa5ecba71d -r 22e596b48479 tests/kernel/tty/t_pr.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/kernel/tty/t_pr.c Mon Jun 28 19:03:59 2010 +0000
@@ -0,0 +1,41 @@
+/* $NetBSD: t_pr.c,v 1.1 2010/06/28 19:04:00 pooka Exp $ */
+
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/tty.h>
+
+#include <atf-c.h>
+#include <fcntl.h>
+
+#include <rump/rump.h>
+#include <rump/rump_syscalls.h>
+
+ATF_TC(ptyioctl);
+ATF_TC_HEAD(ptyioctl, tc)
+{
+
+ atf_tc_set_md_var(tc, "descr", "ioctl on pty");
+ atf_tc_set_md_var(tc, "xfail", "PR kern/40688");
+}
+
+ATF_TC_BODY(ptyioctl, tc)
+{
+ struct termios tio;
+ int fd;
+
+ rump_init();
+ fd = rump_sys_open("/dev/ptyp1", O_RDWR);
+ if (fd == -1)
+ err(1, "open");
+
+ /* boom, dies with null deref under ptcwakeup() */
+ rump_sys_ioctl(fd, TIOCGETA, &tio);
+}
+
+ATF_TP_ADD_TCS(tp)
+{
+
+ ATF_TP_ADD_TC(tp, ptyioctl);
+
+ return atf_no_error();
+}
Home |
Main Index |
Thread Index |
Old Index