diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-16 11:49:51 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-17 04:33:29 -0600 |
commit | f4208baddc4a94b707f516e976f8ccb23dbebed5 (patch) | |
tree | f5560bd8ac18b81400456ec1f194249a8b63467e /src | |
parent | 1f02825b60124fd9f048f6857902dff154da5300 (diff) | |
download | groff-git-f4208baddc4a94b707f516e976f8ccb23dbebed5.tar.gz |
[tests]: Fix test failure on Solaris 11.
* src/roff/groff/tests/device_control_escapes_express_basic_latin.sh:
Use printf(1), which is often a shell built-in command, more
consistently. Double backslashes intended as literals in the format
string, and single-quote format strings using them. Fixes test
failure seen on Solaris 11 with GNU Bash 4.4 and ksh 93u+
(2012-08-01).
Also spell failure message in full capitals, like all other tests
producing this sort of output.
Diffstat (limited to 'src')
-rwxr-xr-x | src/roff/groff/tests/device_control_escapes_express_basic_latin.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/roff/groff/tests/device_control_escapes_express_basic_latin.sh b/src/roff/groff/tests/device_control_escapes_express_basic_latin.sh index 0bc308e5e..64189138f 100755 --- a/src/roff/groff/tests/device_control_escapes_express_basic_latin.sh +++ b/src/roff/groff/tests/device_control_escapes_express_basic_latin.sh @@ -33,12 +33,12 @@ check_char () { output=$2 description=$3 device=$4 - printf 'checking conversion of \%s to %s (%s) on device %s' \ + printf 'checking conversion of \\%s to %s (%s) on device %s' \ "$sc" "$output" "$description" "$device" >&2 - if ! printf "\\X#\\%s %s#\n" "$sc" "$desc" | "$groff" -T$device -Z \ + if ! printf '\\X#\\%s %s#\n' "$sc" "$desc" | "$groff" -T$device -Z \ | grep -Fqx 'x X '$output' ' then - printf '...failed' >&2 + printf '...FAILED' >&2 fail=yes fi printf '\n' >&2 |