mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
tests/*.sh: fix indentation of warnings
This commit is contained in:
parent
e220445265
commit
32cff97b24
6 changed files with 8 additions and 8 deletions
0
src/cmd/INIT/cc.linux.i386
Normal file → Executable file
0
src/cmd/INIT/cc.linux.i386
Normal file → Executable file
|
@ -83,7 +83,7 @@ fi
|
|||
chmod 000 $file
|
||||
|
||||
if [[ $(id -u) == '0' ]]
|
||||
then print -u2 -r "${Command}[$LINENO]: warning: running as root: skipping tests involving r/w permissions"
|
||||
then print -u2 "\t${Command}[$LINENO]: warning: running as root: skipping tests involving r/w permissions"
|
||||
else if [[ -r $file ]]
|
||||
then err_exit "-r: $file should not be readable"
|
||||
fi
|
||||
|
|
|
@ -812,7 +812,7 @@ e=$?
|
|||
|
||||
# https://bugzilla.redhat.com/1102627
|
||||
if [[ $(id -u) == '0' ]]
|
||||
then print -u2 -r "${Command}[$LINENO]: warning: running as root: skipping tests involving directory search (x) permission"
|
||||
then print -u2 "\t${Command}[$LINENO]: warning: running as root: skipping tests involving directory search (x) permission"
|
||||
else
|
||||
mkdir -m 600 "$tmp/no_x_dir"
|
||||
expect=": cd: $tmp/no_x_dir: [Permission denied]"
|
||||
|
|
|
@ -341,7 +341,7 @@ scr=$tmp/script
|
|||
exp=126
|
||||
|
||||
if [[ $(id -u) == '0' ]]; then
|
||||
print -u2 -r "${Command}[$LINENO]: warning: running as root: skipping tests involving unreadable scripts"
|
||||
print -u2 "\t${Command}[$LINENO]: warning: running as root: skipping tests involving unreadable scripts"
|
||||
else
|
||||
|
||||
: > $scr
|
||||
|
|
|
@ -209,7 +209,7 @@ u ^hello\r?\n$
|
|||
!
|
||||
|
||||
if [[ $(id -u) == 0 ]]
|
||||
then print -u2 -r "${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 096(C)"
|
||||
then print -u2 "\t${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 096(C)"
|
||||
else
|
||||
# err_exit #
|
||||
tst $LINENO <<"!"
|
||||
|
@ -254,7 +254,7 @@ u ^ok\r?\n$
|
|||
!
|
||||
|
||||
if [[ $(id -u) == 0 ]]
|
||||
then print -u2 -r "${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 099(C)"
|
||||
then print -u2 "\t${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 099(C)"
|
||||
else
|
||||
# err_exit #
|
||||
tst $LINENO <<"!"
|
||||
|
@ -365,7 +365,7 @@ u ^done\r?\n$
|
|||
!
|
||||
|
||||
if [[ $(id -u) == 0 ]]
|
||||
then print -u2 -r "${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 111(C)"
|
||||
then print -u2 "\t${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 111(C)"
|
||||
else
|
||||
# err_exit #
|
||||
tst $LINENO <<"!"
|
||||
|
@ -417,7 +417,7 @@ u ^hello world\r?\n$
|
|||
end_disabled
|
||||
|
||||
if [[ $(id -u) == 0 ]]
|
||||
then print -u2 -r "${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 251(C)"
|
||||
then print -u2 "\t${Command}[$LINENO]: warning: running as root: skipping test POSIX sh 251(C)"
|
||||
else
|
||||
# err_exit #
|
||||
tst $LINENO <<"!"
|
||||
|
|
|
@ -741,7 +741,7 @@ Errors=$? # ensure error count survives subshell
|
|||
(
|
||||
errmsg=$({ LANG=bad_LOCALE; } 2>&1)
|
||||
if [[ -z $errmsg ]]
|
||||
then print -u2 -r "${Command}[$LINENO]: warning: C library does not seem to verify locales: skipping LC_* tests"
|
||||
then print -u2 "\t${Command}[$LINENO]: warning: C library does not seem to verify locales: skipping LC_* tests"
|
||||
exit $Errors
|
||||
fi
|
||||
x=x
|
||||
|
|
Loading…
Reference in a new issue