git: f659997ccee7 - stable/15 - rc_subr_test: ignore stderr in no_cycles test

From: Siva Mahadevan <siva_at_FreeBSD.org>
Date: Tue, 01 Sep 2026 09:02:22 UTC
The branch stable/15 has been updated by siva:

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

commit f659997ccee7f74a310412e4e95086fbc35a4145
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-08-12 18:45:52 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-09-01 09:02:12 +0000

    rc_subr_test: ignore stderr in no_cycles test
    
    nuageinit_user_data_script references 'firstboot_freebsd_update'
    and 'firstboot_pkg_upgrade', which are from Ports. In a default
    base system test without sysutils/firstboot-freebsd-update and
    sysutils/firstboot-pkg-upgrade, rcorder will warn on "unknown
    provisions" to stderr, but is otherwise harmless.
    
    Reviewed by:    arrowd
    Fixes:          16e47f317c4ce2be5fed530bf8a9af9f9bf55364
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 3c33729ce2f421e2a583f19f85a181968aa310de)
---
 libexec/rc/tests/rc_subr_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/rc/tests/rc_subr_test.sh b/libexec/rc/tests/rc_subr_test.sh
index 4754ad83c290..f229ee221bdf 100644
--- a/libexec/rc/tests/rc_subr_test.sh
+++ b/libexec/rc/tests/rc_subr_test.sh
@@ -34,7 +34,7 @@ no_cycles_head()
 
 no_cycles_body()
 {
-	atf_check -e empty -o ignore rcorder /etc/rc.d/*
+	atf_check -s exit:0 -e ignore -o ignore rcorder /etc/rc.d/*
 }
 
 atf_test_case oomprotect_all