gbranden pushed a commit to branch master
in repository groff.
commit b3775c2327f1f8508571f98403b4518710686375
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 23 10:39:41 2026 -0600
[groff]: Regression-test Savannah #68954.
* src/roff/groff/tests/error-ev-request-given-bogus-argument.sh: New
file; do it.
* src/roff/groff/groff.am Update `groff_TESTS` to run test.
Test fails at this commit.
---
ChangeLog | 8 ++++++
src/roff/groff/groff.am | 1 +
.../tests/error-ev-request-given-bogus-argument.sh | 33 ++++++++++++++++++++++
3 files changed, 42 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 667f5f665..6905606a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-11-23 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #68954.
+
+ * src/roff/groff/tests/error-ev-request-given-bogus-argument.sh:
+ New file; do it.
+ * src/roff/groff/groff.am Update `groff_TESTS` to run test.
+
2026-11-23 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp (environment_switch_request): Make `ev`
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 85b0aa048..900a72722 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -109,6 +109,7 @@ groff_TESTS = \
src/roff/groff/tests/error-close-request-given-empty-argument.sh \
src/roff/groff/tests/error-defcolor-request-given-bogus-arguments.sh \
src/roff/groff/tests/error-dt-request-given-bogus-arguments.sh \
+ src/roff/groff/tests/error-ev-request-given-bogus-argument.sh \
src/roff/groff/tests/error-evc-request-given-bogus-argument.sh \
src/roff/groff/tests/error-ftr-request-given-bogus-arguments.sh \
src/roff/groff/tests/error-fzoom-request-given-bogus-argument.sh \
diff --git a/src/roff/groff/tests/error-ev-request-given-bogus-argument.sh
b/src/roff/groff/tests/error-ev-request-given-bogus-argument.sh
new file mode 100755
index 000000000..297b7a410
--- /dev/null
+++ b/src/roff/groff/tests/error-ev-request-given-bogus-argument.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# 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"
+
+input='.
+.ev newenv
+.tmc before:
+.pnr .ev
+.ev \0
+.tmc after:
+.pnr .ev
+.'
+
+error=$(printf '%s\n' "$input" | "$groff" 2>&1)
+echo "$error"
+echo "$error" | grep -q 'after:\.ev[[:space:]]newenv'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit