gbranden pushed a commit to branch master
in repository groff.
commit 15f7069a67e07b786790f09fa3fd565edcd1b622
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 2 23:42:57 2026 -0600
[soelim]: Regression-test Savannah #68875.
* src/preproc/soelim/tests/warning-escaped-space-gets-lineno-right.sh:
New file; do it.
* src/preproc/soelim/soelim.am: Update `soelim_TESTS` to run test.
Test fails at this commit.
---
ChangeLog | 9 ++++++++
src/preproc/soelim/soelim.am | 1 +
.../warning-escaped-space-gets-lineno-right.sh | 26 ++++++++++++++++++++++
3 files changed, 36 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1fb59cad3..2e07e9437 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-11-02 G. Branden Robinson <[email protected]>
+
+ [soelim]: Regression-test Savannah #68875.
+
+ * src/preproc/soelim/tests/\
+ warning-escaped-space-gets-lineno-right.sh: New file; do it.
+ * src/preproc/soelim/soelim.am: Update `soelim_TESTS` to run
+ test.
+
2026-11-02 G. Branden Robinson <[email protected]>
* src/preproc/soelim/soelim.cpp (do_file): Throw warning if an
diff --git a/src/preproc/soelim/soelim.am b/src/preproc/soelim/soelim.am
index 1e219316a..98b151663 100644
--- a/src/preproc/soelim/soelim.am
+++ b/src/preproc/soelim/soelim.am
@@ -24,6 +24,7 @@ EXTRA_DIST += \
soelim_TESTS = \
src/preproc/soelim/tests/leading-quote-before-file-name-works.sh \
src/preproc/soelim/tests/passes-through-input-with-eighth-bit-set.sh \
+ src/preproc/soelim/tests/warning-escaped-space-gets-lineno-right.sh \
src/preproc/soelim/tests/produces-accurate-lf-requests.sh \
src/preproc/soelim/tests/smoke-test.sh \
src/preproc/soelim/tests/space-in-argument-works.sh \
diff --git
a/src/preproc/soelim/tests/warning-escaped-space-gets-lineno-right.sh
b/src/preproc/soelim/tests/warning-escaped-space-gets-lineno-right.sh
new file mode 100755
index 000000000..bbedda4d8
--- /dev/null
+++ b/src/preproc/soelim/tests/warning-escaped-space-gets-lineno-right.sh
@@ -0,0 +1,26 @@
+#!/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/>.
+
+soelim="${abs_top_builddir:-.}/soelim"
+
+# A warning about an escaped space report the correct line number.
+
+warning=$(printf '.so foo\\ bar\n' | "$soelim" 2>&1 > /dev/null)
+echo "$warning"
+echo "$warning" | grep -q ':1: warning:'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit