[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 11/18: [groff]: Add regression test for Savannah #61748.
From: |
G. Branden Robinson |
Subject: |
[groff] 11/18: [groff]: Add regression test for Savannah #61748. |
Date: |
Sun, 2 Jan 2022 10:33:58 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 525fe85ec9de643999e44a77568d66a7913b77b1
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Jan 2 00:25:36 2022 +1100
[groff]: Add regression test for Savannah #61748.
* src/roff/groff/tests/html_works_with_grn_and_eqn.sh: Do it.
* src/roff/groff/groff.am (groff_TESTS): Run it.
Test may loop infinitely at this commit; since the behavior depends on
a read from uninitialized memory, I doubt that it is deterministic
across system configurations.
---
ChangeLog | 7 +++++
src/roff/groff/groff.am | 1 +
.../groff/tests/html_works_with_grn_and_eqn.sh | 35 ++++++++++++++++++++++
3 files changed, 43 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index def0b5f0..63a293b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-12-31 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [groff]: Add regression test for Savannah #61748.
+
+ * src/roff/groff/tests/html_works_with_grn_and_eqn.sh: Do it.
+ * src/roff/groff/groff.am (groff_TESTS): Run it.
+
2021-12-31 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/devices/grohtml/post-html.cpp
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index e5549e5f..69288a46 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -45,6 +45,7 @@ groff_TESTS = \
src/roff/groff/tests/dot-nm_register_works.sh \
src/roff/groff/tests/evc_produces_no_output_if_invalid.sh \
src/roff/groff/tests/fp_should_not_traverse_directories.sh \
+ src/roff/groff/tests/html_works_with_grn_and_eqn.sh \
src/roff/groff/tests/initialization_is_quiet.sh \
src/roff/groff/tests/localization_works.sh \
src/roff/groff/tests/msoquiet_works.sh \
diff --git a/src/roff/groff/tests/html_works_with_grn_and_eqn.sh
b/src/roff/groff/tests/html_works_with_grn_and_eqn.sh
new file mode 100755
index 00000000..972331c7
--- /dev/null
+++ b/src/roff/groff/tests/html_works_with_grn_and_eqn.sh
@@ -0,0 +1,35 @@
+#!/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"
+
+# Commit c71b4ef4aa provoked an infinite loop in post-grohtml with these
+# preprocessors.
+
+input='.EQ
+gsize 12
+delim $$
+.EN
+.pp
+.pp
+The faster clocks are $ PN $'
+
+output=$("$groff" -b -ww -Thtml -eg -me "$input")
+test -n "$output"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 11/18: [groff]: Add regression test for Savannah #61748.,
G. Branden Robinson <=