From 4392979e9d616aebd376f5aac69a08277b7820dc Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Mon, 13 Feb 2023 18:41:42 -0600 Subject: [tmac]: Work around macOS od (mis-)behavior. * tmac/tests/latin2_works.sh: * tmac/tests/latin5_works.sh: * tmac/tests/latin9_works.sh: Port to work around macOS's apparently POSIX non-conforming 'od' command. Use single-byte octal output format instead of "character", and update test expectations accordingly. Apparently gratuitously, macOS also puts more spaces after the octal address field when using this output format. * HACKING: Document, and elaborate upon, this problem. Also distinguish identical test failure diagnostics. ANNOUNCE: Remove caveat about automated test failures on macOS. --- HACKING | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'HACKING') diff --git a/HACKING b/HACKING index 9084c86b5..54ca770e7 100644 --- a/HACKING +++ b/HACKING @@ -92,6 +92,19 @@ Here are some portability notes on writing automated tests. might need to be weakened to the following on macOS. grep -Eqx '0000000 +A +\\b +B +\\b +C D +\\n *' +* The "od" command on macOS does not respect the environment variable + assignment "LC_ALL=C" when processing byte values 127