mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix a test failure for printf %T now
on Linux (#38)
src/cmd/ksh93/tests/builtins.sh: - The output of 'printf %T now' and the external 'date' command aren't guaranteed to be the same unless $LC_ALL is set to 'C'. Set LC_ALL in these command substitutions to fix a spurious test failure on Linux.
This commit is contained in:
parent
85165ee5e1
commit
e0b326ae15
1 changed files with 2 additions and 2 deletions
|
@ -310,8 +310,8 @@ then err_exit "printf '%..*s' not working"
|
||||||
fi
|
fi
|
||||||
[[ $(printf '%q\n') == '' ]] || err_exit 'printf "%q" with missing arguments'
|
[[ $(printf '%q\n') == '' ]] || err_exit 'printf "%q" with missing arguments'
|
||||||
# we won't get hit by the one second boundary twice, right?
|
# we won't get hit by the one second boundary twice, right?
|
||||||
[[ $(printf '%T\n' now) == "$(date)" ]] ||
|
[[ $(LC_ALL=C printf '%T\n' now) == "$(LC_ALL=C date)" ]] ||
|
||||||
[[ $(printf '%T\n' now) == "$(date)" ]] ||
|
[[ $(LC_ALL=C printf '%T\n' now) == "$(LC_ALL=C date)" ]] ||
|
||||||
err_exit 'printf "%T" now'
|
err_exit 'printf "%T" now'
|
||||||
behead()
|
behead()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue