gbranden pushed a commit to branch master
in repository groff.
commit 49cbc926cfc3b831babaaaa2912709a339518e5f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Dec 15 17:08:09 2025 -0600
[troff]: Unit-test `-S` command-line option.
* src/roff/groff/tests/safer-mode-works.sh: Unit-test "locking" of safer
mode after `-S` option is specified.
---
ChangeLog | 5 +++++
src/roff/groff/tests/safer-mode-works.sh | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1912d6227..58d7a0ff9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-12-15 G. Branden Robinson <[email protected]>
+
+ * src/roff/groff/tests/safer-mode-works.sh: Unit-test "locking"
+ of safer mode after `-S` option is specified.
+
2025-12-15 G. Branden Robinson <[email protected]>
* src/roff/groff/groff.cpp (main): Initialize `want_unsafe_mode`
diff --git a/src/roff/groff/tests/safer-mode-works.sh
b/src/roff/groff/tests/safer-mode-works.sh
index 84bddac8c..f46300e24 100755
--- a/src/roff/groff/tests/safer-mode-works.sh
+++ b/src/roff/groff/tests/safer-mode-works.sh
@@ -31,6 +31,11 @@ error=$(echo .sy true | "$groff" 2>&1)
echo "$error" | grep error || wail
echo "$output"
+echo "checking that safer mode stays on after '-S -U' options given" >&2
+error=$(echo .sy true | "$groff" 2>&1)
+echo "$error" | grep error || wail
+echo "$output"
+
test -z "$fail"
# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit