mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
tests/builtin.sh: tweaks
This commit is contained in:
parent
03cf032349
commit
e149cf4fd8
1 changed files with 3 additions and 3 deletions
|
@ -857,10 +857,10 @@ unset foo
|
|||
function test_func
|
||||
{
|
||||
readonly foo="bar"
|
||||
[[ "$foo" = "bar" ]] || err_exit "readonly variable is not assigned a value inside functions"
|
||||
[[ $foo = "bar" ]]
|
||||
}
|
||||
test_func
|
||||
)
|
||||
) || err_exit "readonly variable is not assigned a value inside functions"
|
||||
|
||||
# ======
|
||||
# Test the output of nonstandard date formats with 'printf %T'
|
||||
|
@ -981,7 +981,7 @@ EOF
|
|||
# Builtins should handle unrecognized options correctly
|
||||
while IFS= read -r bltin <&3
|
||||
do case $bltin in
|
||||
echo | test | true | false | \[ | : | getconf | */getconf | uname | */uname)
|
||||
echo | test | true | false | \[ | : | getconf | */getconf | uname | */uname | login | newgrp)
|
||||
continue ;;
|
||||
/*/*) expect="Usage: ${bltin##*/} "
|
||||
actual=$({ PATH=${bltin%/*}; "${bltin##*/}" --this-option-does-not-exist; } 2>&1) ;;
|
||||
|
|
Loading…
Reference in a new issue