gbranden pushed a commit to branch master
in repository groff.
commit 08e99ff8404f1a12a5bcd7c64b2522ef9931a9b6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Sep 19 08:36:21 2026 -0500
[eqn]: Regression-test Savannah #68683.
* src/preproc/eqn/tests/error-diagnose-invalid-parameter-name.sh: Do it.
* src/preproc/eqn/eqn.am (eqn_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 ++++++
src/preproc/eqn/eqn.am | 1 +
.../tests/error-diagnose-invalid-parameter-name.sh | 30 ++++++++++++++++++++++
3 files changed, 39 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1e1bd6733..307ada92f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-09-19 G. Branden Robinson <[email protected]>
+
+ [eqn]: Regression-test Savannah #68707.
+
+ * src/preproc/eqn/tests/\
+ error-diagnose-invalid-parameter-name.sh: Do it.
+ * src/preproc/eqn/eqn.am (eqn_TESTS): Run test.
+
2026-09-23 Deri James <[email protected]>
[gropdf]: Fix loading of PDF files exported from Inkscape.
diff --git a/src/preproc/eqn/eqn.am b/src/preproc/eqn/eqn.am
index 725a61255..613f0f19e 100644
--- a/src/preproc/eqn/eqn.am
+++ b/src/preproc/eqn/eqn.am
@@ -94,6 +94,7 @@ maintainer-clean-eqn:
eqn_TESTS = \
src/preproc/eqn/tests/diagnostics-report-correct-line-numbers.sh \
src/preproc/eqn/tests/do-not-segv-on-excess-macro-arguments.sh \
+ src/preproc/eqn/tests/error-diagnose-invalid-parameter-name.sh \
src/preproc/eqn/tests/neqn-finds-matching-eqn.sh \
src/preproc/eqn/tests/neqn-smoke-test.sh \
src/preproc/eqn/tests/parameters-can-be-set-and-reset.sh \
diff --git a/src/preproc/eqn/tests/error-diagnose-invalid-parameter-name.sh
b/src/preproc/eqn/tests/error-diagnose-invalid-parameter-name.sh
new file mode 100755
index 000000000..b2ce5c561
--- /dev/null
+++ b/src/preproc/eqn/tests/error-diagnose-invalid-parameter-name.sh
@@ -0,0 +1,30 @@
+#!/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/>.
+
+eqn="${abs_top_builddir:-.}/eqn"
+
+# Regression-test Savannah #68683.
+
+input='.
+$set bogus 10$
+.'
+
+output=$(printf "%s\n" "$input" | "$eqn" -d '$$' -R 2>&1 >/dev/null)
+printf '%s\n' "$output"
+printf '%s\n' "$output" | grep -q 'error'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit