git: 2f744885ea09 - stable/14 - rc tests: Add a test to check for warnings from rcorder
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Oct 2025 13:01:18 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=2f744885ea09b7d44c7955aaaf740cb024e4312e
commit 2f744885ea09b7d44c7955aaaf740cb024e4312e
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-10-08 12:51:16 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-10-22 12:34:24 +0000
rc tests: Add a test to check for warnings from rcorder
Reviewed by: des
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D52954
(cherry picked from commit 04d47c7cde54cc325cca3f47113976f5500dc58f)
---
libexec/rc/tests/rc_subr_test.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/libexec/rc/tests/rc_subr_test.sh b/libexec/rc/tests/rc_subr_test.sh
index e8398c8d9b12..d453338a7ea3 100644
--- a/libexec/rc/tests/rc_subr_test.sh
+++ b/libexec/rc/tests/rc_subr_test.sh
@@ -28,6 +28,17 @@
# SUCH DAMAGE.
#
+atf_test_case no_cycles
+no_cycles_head()
+{
+ atf_set "descr" "Verify that /etc/rc.d/* contains no cycles"
+}
+
+no_cycles_body()
+{
+ atf_check -e empty -o ignore rcorder /etc/rc.d/*
+}
+
atf_test_case oomprotect_all
oomprotect_all_head()
{
@@ -132,6 +143,7 @@ EOF
atf_init_test_cases()
{
+ atf_add_test_case no_cycles
atf_add_test_case oomprotect_all
atf_add_test_case oomprotect_yes
atf_add_test_case wait_for_pids_progress