gbranden pushed a commit to branch master
in repository groff.
commit ccd8b82cd79f6b270b050bb34415bd2e40c9926d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jan 27 17:56:54 2025 -0600
[groff]: Regression-test Savannah #66723.
* src/roff/groff/tests/hys-request-works.sh: Add test.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 7 ++++++
src/roff/groff/groff.am | 1 +
src/roff/groff/tests/hys-request-works.sh | 38 +++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 3f9003e6e..cfaf0ee78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-01-27 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #66723.
+
+ * src/roff/groff/tests/hys-request-works.sh: Add test.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2025-01-24 G. Branden Robinson <[email protected]>
[troff]: Slightly refactor. Use more idiomatic C++ style,
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 7ba459f2b..e8e25f5fb 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -77,6 +77,7 @@ groff_TESTS = \
src/roff/groff/tests/html-device-smoke-test.sh \
src/roff/groff/tests/html-device-works-with-grn-and-eqn.sh \
src/roff/groff/tests/html-does-not-fumble-tagged-paragraph.sh \
+ src/roff/groff/tests/hys-request-works.sh \
src/roff/groff/tests/initialization-is-quiet.sh \
src/roff/groff/tests/latin1-device-maps-oq-to-0x27.sh \
src/roff/groff/tests/localization-works.sh \
diff --git a/src/roff/groff/tests/hys-request-works.sh
b/src/roff/groff/tests/hys-request-works.sh
new file mode 100755
index 000000000..4d99bf42b
--- /dev/null
+++ b/src/roff/groff/tests/hys-request-works.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# Copyright (C) 2025 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 #66723. Test case based on a reproducer by
+# Dave Kemper.
+
+input='.
+.ll 3c
+I like to ride my bicycle.
+.br
+.hys 1
+I like to bell my bicycle.
+.'
+
+output=$(printf "%s\n" "$input" | "$groff" -a -T ps)
+echo "$output"
+
+echo "$output" | grep -qx 'I like to bell my'
+exit
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit