gbranden pushed a commit to branch master
in repository groff.
commit e4a16ea7155d270a284a0f735b5dbac04fbec74c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 1 05:24:36 2026 -0500
[groff]: Regression-test Savannah #68203.
* src/roff/groff/tests/phw-request-skips-line-if-no-hyph-lang.sh: Do it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 +++++
src/roff/groff/groff.am | 1 +
.../phw-request-skips-line-if-no-hyph-lang.sh | 35 ++++++++++++++++++++++
3 files changed, 44 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index ba2526219..f4418641e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-04-01 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #68203.
+
+ * src/roff/groff/tests/\
+ phw-request-skips-line-if-no-hyph-lang.sh: Do it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2026-04-01 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index f69a09b0b..a41a556ec 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -108,6 +108,7 @@ groff_TESTS = \
src/roff/groff/tests/output-request-works.sh \
src/roff/groff/tests/pchar-request-works.sh \
src/roff/groff/tests/pdf-device-smoke-test.sh \
+ src/roff/groff/tests/phw-request-skips-line-if-no-hyph-lang.sh \
src/roff/groff/tests/pi-request-works.sh \
src/roff/groff/tests/po-request-works.sh \
src/roff/groff/tests/ps-device-smoke-test.sh \
diff --git a/src/roff/groff/tests/phw-request-skips-line-if-no-hyph-lang.sh
b/src/roff/groff/tests/phw-request-skips-line-if-no-hyph-lang.sh
new file mode 100755
index 000000000..381e0e6ed
--- /dev/null
+++ b/src/roff/groff/tests/phw-request-skips-line-if-no-hyph-lang.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Copyright 2026 G. Branden Robinson
+#
+# This file is part of groff, the GNU roff typesetting system.
+#
+# 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"
+
+# Verify that invoking the `phw` request when no hyphenation language is
+# configured skips the rest of its input line instead of formatting it.
+# Savannah #68203.
+
+input='.
+.hla
+.phw
+.'
+
+output=$(printf '%s\n' "$input" | "$groff")
+echo "$output"
+! echo "$output" | grep -q .
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit