Skip to content

Commit

Permalink
Use POSIX printf instead of non-POSIX echo -n
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign authored and orgads committed Apr 5, 2024
1 parent ff8f2cd commit d1bdebe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion regress/functions
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ init() {
cd "`dirname "$0"`"

# Print a nice message.
echo -n "Testing `basename \`pwd\``: "
printf "Testing %s: " "`basename \`pwd\``"
}

# Allow SIPP=/path/to/sipp to override autodetection. Please use an
Expand Down
10 changes: 5 additions & 5 deletions regress/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ for path in github-*; do
done

echo "=="
echo -n "$ok success"
test $skip -ne 0 && echo -n ", $skip skipped"
test $fail -ne 0 && echo -n ", $fail FAILURE"
test $unexpected_ok -ne 0 && echo -n ", $unexpected_ok UNEXPECTED SUCCESS"
test $expected_fail -ne 0 && echo -n ", $expected_fail expected failure"
printf "%d success" "$ok"
test $skip -ne 0 && printf ", %d skipped" "$skip"
test $fail -ne 0 && printf ", %d FAILURE" "$fail"
test $unexpected_ok -ne 0 && printf ", %d UNEXPECTED SUCCESS" "$unexpected_ok"
test $expected_fail -ne 0 && printf ", %d expected failure" "$expected_fail"
echo

# Return our status.
Expand Down

0 comments on commit d1bdebe

Please sign in to comment.