gbranden pushed a commit to branch master
in repository groff.
commit 20eec8545ab08d0aff4dec5f08f424ec0c827e45
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Feb 20 19:26:08 2026 -0600
HACKING: Add more test-writing advice.
---
HACKING | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/HACKING b/HACKING
index d51c4364d..cc24249dc 100644
--- a/HACKING
+++ b/HACKING
@@ -303,6 +303,15 @@ Here is some advice on writing portable automated test
scripts.
might need to be weakened to the following to work on macOS/[NO]*BSD.
grep -q '81 *30 *55 *81 *30 *56 *81 *6c *e2'
+* The "od" command on FreeBSD 14.0 and 15.0, NetBSD 10.0, and OpenBSD
+ 7.8 (at least) pad out the line length with spaces to 73 columns; GNU
+ od does not.
+
+ So a regex like this that works with GNU od:
+ grep -q '0000040 .* *e2 *94 *a4 *0.$'
+ likely must be weakened to the following.
+ grep -q '0000040 .* *e2 *94 *a4 *0. *$'
+
* The "od" command on macOS does not respect the environment variable
assignment "LC_ALL=C" when processing byte values 127<x<256 decimal
and using the "character" output format (option "-t c"). An
@@ -401,7 +410,7 @@ Here is some advice on writing portable automated test
scripts.
if ! unset VARIABLE_OF_INTEREST
then
echo "unable to clear environment; skipping" >&2
- exit 77
+ exit 77 # skip
fi
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit