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 Rename the siginfo4 test in ATF t_ptrace_...



details:   https://anonhg.NetBSD.org/src/rev/a15c28b84629
branches:  trunk
changeset: 839248:a15c28b84629
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Feb 11 05:59:00 2019 +0000

description:
Rename the siginfo4 test in ATF t_ptrace_wait*

The siginfo group of ptrace(2) tests has been replaced with new individual
tests or merged into existing ones. This is the last siginfo* test that
has been renamed.

New name: traceme_exec.

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 115e529ae5c7 -r a15c28b84629 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Mon Feb 11 05:51:20 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Mon Feb 11 05:59:00 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.81 2019/02/11 05:51:20 kamil Exp $ */
+/*     $NetBSD: t_ptrace_wait.c,v 1.82 2019/02/11 05:59:00 kamil Exp $ */
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.81 2019/02/11 05:51:20 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.82 2019/02/11 05:59:00 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -3431,14 +3431,14 @@
 
 /// ----------------------------------------------------------------------------
 
-ATF_TC(siginfo4);
-ATF_TC_HEAD(siginfo4, tc)
+ATF_TC(traceme_exec);
+ATF_TC_HEAD(traceme_exec, tc)
 {
        atf_tc_set_md_var(tc, "descr",
            "Detect SIGTRAP TRAP_EXEC from tracee");
 }
 
-ATF_TC_BODY(siginfo4, tc)
+ATF_TC_BODY(traceme_exec, tc)
 {
        const int sigval = SIGTRAP;
        pid_t child, wpid;
@@ -3490,6 +3490,8 @@
        TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));
 }
 
+/// ----------------------------------------------------------------------------
+
 volatile lwpid_t the_lwp_id = 0;
 
 static void
@@ -5338,7 +5340,7 @@
        ATF_TP_ADD_TC(tp, siginfo_set_unmodified);
        ATF_TP_ADD_TC(tp, siginfo_set_faked);
 
-       ATF_TP_ADD_TC(tp, siginfo4);
+       ATF_TP_ADD_TC(tp, traceme_exec);
 
        ATF_TP_ADD_TC(tp, lwp_create1);
 



Home | Main Index | Thread Index | Old Index