diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-13 11:12:55 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-13 12:05:10 -0600 |
commit | 57e13c40ea472bc3276d0d630d2745e5e6a26744 (patch) | |
tree | 8d00664e32220b67399735144a95626c7a477b5c /src | |
parent | 2ff76bc40468394c7aed3e0209880cd2c490c961 (diff) | |
download | groff-git-57e13c40ea472bc3276d0d630d2745e5e6a26744.tar.gz |
[groff]: Accommodate macOS od behavior in test.
* src/roff/groff/tests/some_escapes_accept_newline_delimiters.sh: Weaken
regexes in two test cases to accommodate excessive output from macOS's
'od' command. Resolves test failure seen on macOS.
* HACKING: Add section "Writing Tests" and document the above since this
is the second time I've cracked my shin on this.
* ANNOUNCE: Drop notice of failing test case, now resolved.
Diffstat (limited to 'src')
-rwxr-xr-x | src/roff/groff/tests/some_escapes_accept_newline_delimiters.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/roff/groff/tests/some_escapes_accept_newline_delimiters.sh b/src/roff/groff/tests/some_escapes_accept_newline_delimiters.sh index 97da54c02..96be05532 100755 --- a/src/roff/groff/tests/some_escapes_accept_newline_delimiters.sh +++ b/src/roff/groff/tests/some_escapes_accept_newline_delimiters.sh @@ -73,7 +73,7 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -ww \ | LC_ALL=C od -t c) # 7 spaces between C and D. printf "%s\n" "$output" \ - | grep -Eqx '0000000 +A +\\b +B +\\b +C D +\\n' || wail + | grep -Eqx '0000000 +A +\\b +B +\\b +C D +\\n *' || wail input="\w ABC @@ -120,7 +120,7 @@ test -z "$error" || wail echo "checking correct handling of newline delimiter to 'Z' escape" >&2 output=$(printf "%s\n" "$input" | "$groff" -Tascii -ww \ | LC_ALL=C od -t c) -printf "%s\n" "$output" | grep -Eqx '0000000 +A +B +\\b +D +C +\\n' \ +printf "%s\n" "$output" | grep -Eqx '0000000 +A +B +\\b +D +C +\\n *' \ || wail test -z "$fail" |