groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 56/78: [ms]: Regression-test Savannah #64005.


From: G. Branden Robinson
Subject: [groff] 56/78: [ms]: Regression-test Savannah #64005.
Date: Fri, 7 Apr 2023 12:17:56 -0400 (EDT)

gbranden pushed a commit to branch branden-2023-04-07
in repository groff.

commit 355a495a31b4560242067eeb8b9a46fe96bc3fa3
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Apr 5 19:08:03 2023 -0500

    [ms]: Regression-test Savannah #64005.
    
    * tmac/tests/s_honor-page-break-after-display.sh: Do it.
    * tmac/tmac.am (tmac_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                      |  7 +++++
 tmac/tests/s_honor-page-break-after-display.sh | 40 ++++++++++++++++++++++++++
 tmac/tmac.am                                   |  1 +
 3 files changed, 48 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c1a6bc92f..09cf4d130 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-04-05  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [ms]: Regression-test Savannah #64005.
+
+       * tmac/tests/s_honor-page-break-after-display.sh: Do it.
+       * tmac/tmac.am (tmac_TESTS): Run test.
+
 2023-03-24  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/mdoc/doc-common (Sh): Restore hyphenation configured with
diff --git a/tmac/tests/s_honor-page-break-after-display.sh 
b/tmac/tests/s_honor-page-break-after-display.sh
new file mode 100755
index 000000000..c50918c86
--- /dev/null
+++ b/tmac/tests/s_honor-page-break-after-display.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# Copyright (C) 2023 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+# Regression-test Savannah #64005.
+
+input='.pl 18v
+.LP
+The first page is \n%.
+.DS
+display
+.DE
+.bp
+.LP
+The second page is \n%.
+.pl \n(nlu'
+
+output=$(printf '%s\n' "$input" | "$groff" -Tascii -P-cbou -ms)
+echo "$output"
+echo "$output" | grep -Fqx 'The second page is 2.'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index e4970afc9..cce50bb1c 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -230,6 +230,7 @@ tmac_TESTS = \
   tmac/tests/s_TC-works-with-percent-in-custom-titles.sh \
   tmac/tests/s_XA-literal-no-argument-suppresses-leader.sh \
   tmac/tests/s_honor-MINGW-when-two-columns.sh \
+  tmac/tests/s_honor-page-break-after-display.sh \
   tmac/tests/s_mark-column-start-correctly.sh \
   tmac/tests/s_no-excess-space-around-displays.sh \
   tmac/tests/s_rejects-too-short-page-lengths.sh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]