Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2026 16:59:40 +0000
From:      Siva Mahadevan <siva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0c4bafd0333f - stable/14 - ptrace_test: expect PT_STEP tests to fail on riscv
Message-ID:  <6a3eaffc.32a65.4c7bf088@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by siva:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c4bafd0333f47850d46a96e7deb98a7da387de6

commit 0c4bafd0333f47850d46a96e7deb98a7da387de6
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-05-28 16:32:24 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-06-26 15:56:09 +0000

    ptrace_test: expect PT_STEP tests to fail on riscv
    
    ptrace_single_step currently returns EOPNOTSUPP on riscv.
    
    This temporarily fixes the following CI failures:
    https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16606/testReport/sys.kern/ptrace_test/ptrace__PT_STEP_with_signal/
    https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16606/testReport/sys.kern/ptrace_test/ptrace__step_siginfo/
    
    Reviewed by:    kib
    Approved by:    emaste (mentor)
    Differential Revision:  https://reviews.freebsd.org/D57288
    
    (cherry picked from commit a7df326619ef9caa2ed00bf2d103dd278e7b32ec)
---
 tests/sys/kern/ptrace_test.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c
index f5350524273b..064c0cfbcf41 100644
--- a/tests/sys/kern/ptrace_test.c
+++ b/tests/sys/kern/ptrace_test.c
@@ -3615,6 +3615,10 @@ ATF_TC_BODY(ptrace__PT_STEP_with_signal, tc)
 	ATF_REQUIRE(pl.pl_flags & PL_FLAG_SI);
 	REQUIRE_EQ(pl.pl_siginfo.si_signo, SIGABRT);
 
+#if defined(__riscv)
+	atf_tc_expect_fail("PT_STEP not implemented on riscv, see sys/riscv/riscv/ptrace_machdep.c");
+#endif
+
 	/* Step the child process inserting SIGUSR1. */
 	REQUIRE_EQ(ptrace(PT_STEP, fpid, (caddr_t)1, SIGUSR1), 0);
 
@@ -3732,6 +3736,10 @@ ATF_TC_BODY(ptrace__step_siginfo, tc)
 	ATF_REQUIRE(WIFSTOPPED(status));
 	REQUIRE_EQ(WSTOPSIG(status), SIGSTOP);
 
+#if defined(__riscv)
+	atf_tc_expect_fail("PT_STEP not implemented on riscv, see sys/riscv/riscv/ptrace_machdep.c");
+#endif
+
 	/* Step the child ignoring the SIGSTOP. */
 	REQUIRE_EQ(ptrace(PT_STEP, fpid, (caddr_t)1, 0), 0);
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3eaffc.32a65.4c7bf088>