gbranden pushed a commit to branch master
in repository groff.

commit 7e5b1efceff9aec249e94231779a95677744ee89
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Oct 20 15:56:47 2025 -0500

    [man]: Make test less rigid.
    
    * tmac/tests/an_degenerate-input-uses-sane-page-length.sh: Make test
      more adaptable to degenerate documents or `PT` and `BT` redefinitions.
      This test's concern is with man(7) not putting an insane number of
      blank lines on the output.
---
 ChangeLog                                               | 7 +++++++
 tmac/tests/an_degenerate-input-uses-sane-page-length.sh | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 1973898be..bd4517eac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-10-20  G. Branden Robinson <[email protected]>
+
+       * tmac/tests/an_degenerate-input-uses-sane-page-length.sh: Make
+       test more adaptable to degenerate documents or `PT` and `BT`
+       redefinitions.  This test's concern is with man(7) not putting
+       an insane number of blank lines on the output.
+
 2025-10-20  G. Branden Robinson <[email protected]>
 
        * tmac/an.tmac: Initialize more state to prevent warnings when
diff --git a/tmac/tests/an_degenerate-input-uses-sane-page-length.sh 
b/tmac/tests/an_degenerate-input-uses-sane-page-length.sh
index 0886936fa..463197d37 100755
--- a/tmac/tests/an_degenerate-input-uses-sane-page-length.sh
+++ b/tmac/tests/an_degenerate-input-uses-sane-page-length.sh
@@ -27,6 +27,8 @@ This is my paragraph.
 output=$(echo "$input" | "$groff" -rcR=1 -man -T ascii -P -cbou)
 echo "$output"
 
-test $(echo "$output" | wc -l) -eq 1
+# We might have 2 blank lines for the header and footer, and up to one
+# for inter-paragraph spacing.
+test $(echo "$output" | wc -l) -lt 5
 
 # vim:set ai et sw=4 ts=4 tw=72:

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to