aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-10-08 12:51:16 +0000
committerMark Johnston <markj@FreeBSD.org>2025-10-08 12:51:16 +0000
commit04d47c7cde54cc325cca3f47113976f5500dc58f (patch)
tree5bb3f75513690772395d46f429a258dab879beff
parentae6db60ff56de5b93de9f6fee6116cbc2d4b498e (diff)
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
-rw-r--r--libexec/rc/tests/rc_subr_test.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/libexec/rc/tests/rc_subr_test.sh b/libexec/rc/tests/rc_subr_test.sh
index fe6d3b8264c9..9ddd13b61a7c 100644
--- a/libexec/rc/tests/rc_subr_test.sh
+++ b/libexec/rc/tests/rc_subr_test.sh
@@ -26,6 +26,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()
{
@@ -130,6 +141,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