Module Name: src Committed By: christos Date: Sat Dec 16 14:45:25 UTC 2017
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c t_ptrace_x86_wait.h Log Message: Add expected failures. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libc/sys/t_ptrace_wait.c cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_ptrace_x86_wait.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/sys/t_ptrace_wait.c diff -u src/tests/lib/libc/sys/t_ptrace_wait.c:1.13 src/tests/lib/libc/sys/t_ptrace_wait.c:1.14 --- src/tests/lib/libc/sys/t_ptrace_wait.c:1.13 Thu Dec 14 17:06:54 2017 +++ src/tests/lib/libc/sys/t_ptrace_wait.c Sat Dec 16 09:45:25 2017 @@ -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 @@ ATF_TC_BODY(eventmask3, tc) 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 @@ ATF_TC_BODY(signal5, tc) #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 @@ ATF_TC_BODY(signal6, tc) 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 @@ ATF_TC_BODY(signal7, tc) 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 @@ ATF_TC_BODY(signal8, tc) 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 @@ ATF_TC_BODY(signal9, tc) 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 @@ ATF_TC_BODY(signal10, tc) 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 @@ ATF_TC_BODY(resume1, tc) // 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); Index: src/tests/lib/libc/sys/t_ptrace_x86_wait.h diff -u src/tests/lib/libc/sys/t_ptrace_x86_wait.h:1.2 src/tests/lib/libc/sys/t_ptrace_x86_wait.h:1.3 --- src/tests/lib/libc/sys/t_ptrace_x86_wait.h:1.2 Thu Dec 14 17:06:54 2017 +++ src/tests/lib/libc/sys/t_ptrace_x86_wait.h Sat Dec 16 09:45:25 2017 @@ -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 @@ ATF_TC_BODY(dbregs_dr0_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr1_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr2_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr3_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr0_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr1_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr2_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr3_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr0_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr1_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr2_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr3_trap_variable_rea /* 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 @@ ATF_TC_BODY(dbregs_dr0_trap_code, tc) 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 @@ ATF_TC_BODY(dbregs_dr1_trap_code, tc) 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 @@ ATF_TC_BODY(dbregs_dr2_trap_code, tc) 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 @@ ATF_TC_BODY(dbregs_dr3_trap_code, tc) 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 */