Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2026 16:49:20 +0000
From:      Siva Mahadevan <siva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a7df326619ef - main - ptrace_test: expect PT_STEP tests to fail on riscv
Message-ID:  <6a187210.39c80.56235993@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by siva:

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

commit a7df326619ef9caa2ed00bf2d103dd278e7b32ec
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-05-28 16:32:24 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-05-28 16:32:42 +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
---
 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 c1a5d226e990..3a55a6f48033 100644
--- a/tests/sys/kern/ptrace_test.c
+++ b/tests/sys/kern/ptrace_test.c
@@ -3614,6 +3614,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);
 
@@ -3731,6 +3735,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?6a187210.39c80.56235993>