Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys Add expected failures.



details:   https://anonhg.NetBSD.org/src/rev/53afebf03013
branches:  trunk
changeset: 828492:53afebf03013
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 16 14:45:25 2017 +0000

description:
Add expected failures.

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.c     |  19 ++++++++++++++++---
 tests/lib/libc/sys/t_ptrace_x86_wait.h |  20 +++++++++++++++++++-
 2 files changed, 35 insertions(+), 4 deletions(-)

diffs (228 lines):

diff -r ab2fac085186 -r 53afebf03013 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Sat Dec 16 12:40:30 2017 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Sat Dec 16 14:45:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.13 2017/12/14 22:06:54 christos Exp $      */
+/*     $NetBSD: t_ptrace_wait.c,v 1.14 2017/12/16 14:45:25 christos Exp $      */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.13 2017/12/14 22:06:54 christos Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.14 2017/12/16 14:45:25 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1103,6 +1103,8 @@
        ptrace_event_t set_event, get_event;
        const int len = sizeof(ptrace_event_t);
 
+       atf_tc_expect_fail("PR kern/51630");
+
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -5916,6 +5918,8 @@
 #endif
        sigset_t intmask;
 
+       atf_tc_expect_fail("wrong signal");
+
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -5990,6 +5994,8 @@
        ptrace_event_t event;
        const int elen = sizeof(event);
 
+       atf_tc_expect_timeout("PR kern/51918");
+
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -6119,6 +6125,8 @@
        ptrace_event_t event;
        const int elen = sizeof(event);
 
+       atf_tc_expect_fail("PR kern/51918 PR kern/51630");
+
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -6247,6 +6255,8 @@
        ptrace_event_t event;
        const int elen = sizeof(event);
 
+       atf_tc_expect_fail("PR kern/51918");
+
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -6352,6 +6362,8 @@
        static const size_t ssize = 16*1024;
        void *stack;
 
+       atf_tc_expect_fail("PR kern/51918");
+
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -6454,6 +6466,8 @@
        static const size_t ssize = 16*1024;
        void *stack;
 
+       atf_tc_expect_fail("PR kern/51918");
+
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -7246,7 +7260,6 @@
 
        // Times out
        atf_tc_expect_timeout("PR kern/51995");
-       ATF_REQUIRE(0 && "In order to get reliable failure, abort");
 
        SYSCALL_REQUIRE(msg_open(&fds) == 0);
 
diff -r ab2fac085186 -r 53afebf03013 tests/lib/libc/sys/t_ptrace_x86_wait.h
--- a/tests/lib/libc/sys/t_ptrace_x86_wait.h    Sat Dec 16 12:40:30 2017 +0000
+++ b/tests/lib/libc/sys/t_ptrace_x86_wait.h    Sat Dec 16 14:45:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_x86_wait.h,v 1.2 2017/12/14 22:06:54 christos Exp $   */
+/*     $NetBSD: t_ptrace_x86_wait.h,v 1.3 2017/12/16 14:45:25 christos Exp $   */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -897,6 +897,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b00 -- 1 byte */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(0, 3, 0, false);
 }
 
@@ -913,6 +914,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b00 -- 1 byte */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(1, 3, 0, false);
 }
 
@@ -929,6 +931,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b00 -- 1 byte */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(2, 3, 0, false);
 }
 
@@ -945,6 +948,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b00 -- 1 byte */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(3, 3, 0, false);
 }
 
@@ -961,6 +965,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b01 -- 2 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(0, 3, 1, false);
 }
 
@@ -977,6 +982,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b01 -- 2 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(1, 3, 1, false);
 }
 
@@ -993,6 +999,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b01 -- 2 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(2, 3, 1, false);
 }
 
@@ -1009,6 +1016,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b01 -- 2 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(3, 3, 1, false);
 }
 
@@ -1025,6 +1033,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b11 -- 4 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(0, 3, 3, false);
 }
 
@@ -1041,6 +1050,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b11 -- 4 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(1, 3, 3, false);
 }
 
@@ -1057,6 +1067,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b11 -- 4 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(2, 3, 3, false);
 }
 
@@ -1073,6 +1084,7 @@
        /* 0b11 -- break on data write&read */
        /* 0b11 -- 4 bytes */
 
+       atf_tc_expect_fail("wrong signal");
        dbregs_trap_variable(3, 3, 3, false);
 }
 
@@ -1098,6 +1110,8 @@
        volatile int watchme = 1;
        union u dr7;
 
+       atf_tc_expect_fail("wrong signal");
+
        struct ptrace_siginfo info;
        memset(&info, 0, sizeof(info));
 
@@ -1228,6 +1242,8 @@
        struct ptrace_siginfo info;
        memset(&info, 0, sizeof(info));
 
+       atf_tc_expect_fail("wrong signal");
+
        dr7.raw = 0;
        dr7.bits.global_dr1_breakpoint = 1;
        dr7.bits.condition_dr1 = 0;     /* 0b00 -- break on code execution */
@@ -1355,6 +1371,7 @@
        struct ptrace_siginfo info;
        memset(&info, 0, sizeof(info));
 
+       atf_tc_expect_fail("wrong signal");
        dr7.raw = 0;
        dr7.bits.global_dr2_breakpoint = 1;
        dr7.bits.condition_dr2 = 0;     /* 0b00 -- break on code execution */
@@ -1482,6 +1499,7 @@
        struct ptrace_siginfo info;
        memset(&info, 0, sizeof(info));
 
+       atf_tc_expect_fail("wrong signal");
        dr7.raw = 0;
        dr7.bits.global_dr3_breakpoint = 1;
        dr7.bits.condition_dr3 = 0;     /* 0b00 -- break on code execution */



Home | Main Index | Thread Index | Old Index