groff-commit
[Top][All Lists]
Advanced

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

[groff] 07/09: Add regression test for Savannah #44018.


From: G. Branden Robinson
Subject: [groff] 07/09: Add regression test for Savannah #44018.
Date: Wed, 21 Oct 2020 02:44:46 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 7964eb52debd3f09ce9125ca063c742448854fa8
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Oct 21 00:39:39 2020 +1100

    Add regression test for Savannah #44018.
    
    Warning: "make check" will loop infinitely at this commit.
---
 src/roff/groff/groff.am                            |  1 +
 .../do_not_loop_infinitely_when_breaking_cjk.sh    | 29 ++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 712f3d3..4854eab 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -41,6 +41,7 @@ groffoptsdir = $(libprogramdir)
 groffopts_DATA = $(GROFF_OPTS_OUTPUT)
 
 groff_TESTS = \
+  src/roff/groff/tests/do_not_loop_infinitely_when_breaking_cjk.sh \
   src/roff/groff/tests/dot-cp_register_works.sh \
   src/roff/groff/tests/on_latin1_device_oq_is_0x27.sh \
   src/roff/groff/tests/recognize_end_of_sentence.sh \
diff --git a/src/roff/groff/tests/do_not_loop_infinitely_when_breaking_cjk.sh 
b/src/roff/groff/tests/do_not_loop_infinitely_when_breaking_cjk.sh
new file mode 100755
index 0000000..4f4a12a
--- /dev/null
+++ b/src/roff/groff/tests/do_not_loop_infinitely_when_breaking_cjk.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# Copyright (C) 2020 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"
+
+set -e
+
+DOC='ćƒ³
+恂恂AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+'
+
+echo "$DOC" | "$groff" -D utf8 -Tutf8 -mja



reply via email to

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