groff-commit
[Top][All Lists]
Advanced

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

[groff] 22/23: [tbl]: Regression-test Savannah #49390.


From: G. Branden Robinson
Subject: [groff] 22/23: [tbl]: Regression-test Savannah #49390.
Date: Sat, 30 Jul 2022 14:53:46 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f75c2d5d7946154a8ef004174a714606281f6e4f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jul 30 10:44:41 2022 -0500

    [tbl]: Regression-test Savannah #49390.
    
    * src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh: Do it.
    * src/preproc/tbl/tbl.am (tbl_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                          |  8 +++++
 src/preproc/tbl/tbl.am                             |  1 +
 .../tests/do-not-overlap-bottom-border-in-nroff.sh | 38 ++++++++++++++++++++++
 3 files changed, 47 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 5ead95fbc..4407d8f88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-07-30  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [tbl]: Regression-test Savannah #49390.
+
+       * src/preproc/tbl/tests/\
+       do-not-overlap-bottom-border-in-nroff.sh: Do it.
+       * src/preproc/tbl/tbl.am (tbl_TESTS): Run test.
+
 2022-07-28  Deri James  <deri@chuzzlewit.myzen.co.uk>
 
        [gropdf]: slanting lowercase greek characters. See
diff --git a/src/preproc/tbl/tbl.am b/src/preproc/tbl/tbl.am
index f271e7cdc..b2b1b3c4f 100644
--- a/src/preproc/tbl/tbl.am
+++ b/src/preproc/tbl/tbl.am
@@ -30,6 +30,7 @@ tbl_TESTS = \
   src/preproc/tbl/tests/check-vertical-line-length.sh \
   src/preproc/tbl/tests/cooperate-with-nm-request.sh \
   src/preproc/tbl/tests/count-continued-input-lines.sh \
+  src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh \
   src/preproc/tbl/tests/do-not-segv-on-invalid-vertical-span-entry.sh \
   src/preproc/tbl/tests/do-not-segv-when-backslash-R-in-text-block.sh \
   src/preproc/tbl/tests/format-time-diagnostics-work.sh \
diff --git a/src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh 
b/src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh
new file mode 100755
index 000000000..304ec0027
--- /dev/null
+++ b/src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# Copyright (C) 2022 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 #49390.
+
+input='foo
+.TS
+box;
+L.
+bar
+.TE
+baz
+.pl \n(nlu
+'
+
+output=$(printf "%s" "$input" | "$groff" -t -Tascii)
+echo "$output" | grep -q baz
+
+# vim:set ai et sw=4 ts=4 tw=72:



reply via email to

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