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
|
chmod 000 $file
|
||||||
|
|
||||||
if [[ $(id -u) == '0' ]]
|
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 ]]
|
else if [[ -r $file ]]
|
||||||
then err_exit "-r: $file should not be readable"
|
then err_exit "-r: $file should not be readable"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -812,7 +812,7 @@ e=$?
|
||||||
|
|
||||||
# https://bugzilla.redhat.com/1102627
|
# https://bugzilla.redhat.com/1102627
|
||||||
if [[ $(id -u) == '0' ]]
|
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
|
else
|
||||||
mkdir -m 600 "$tmp/no_x_dir"
|
mkdir -m 600 "$tmp/no_x_dir"
|
||||||
expect=": cd: $tmp/no_x_dir: [Permission denied]"
|
expect=": cd: $tmp/no_x_dir: [Permission denied]"
|
||||||
|
|
|
@ -341,7 +341,7 @@ scr=$tmp/script
|
||||||
exp=126
|
exp=126
|
||||||
|
|
||||||
if [[ $(id -u) == '0' ]]; then
|
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
|
else
|
||||||
|
|
||||||
: > $scr
|
: > $scr
|
||||||
|
|
|
@ -209,7 +209,7 @@ u ^hello\r?\n$
|
||||||
!
|
!
|
||||||
|
|
||||||
if [[ $(id -u) == 0 ]]
|
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
|
else
|
||||||
# err_exit #
|
# err_exit #
|
||||||
tst $LINENO <<"!"
|
tst $LINENO <<"!"
|
||||||
|
@ -254,7 +254,7 @@ u ^ok\r?\n$
|
||||||
!
|
!
|
||||||
|
|
||||||
if [[ $(id -u) == 0 ]]
|
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
|
else
|
||||||
# err_exit #
|
# err_exit #
|
||||||
tst $LINENO <<"!"
|
tst $LINENO <<"!"
|
||||||
|
@ -365,7 +365,7 @@ u ^done\r?\n$
|
||||||
!
|
!
|
||||||
|
|
||||||
if [[ $(id -u) == 0 ]]
|
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
|
else
|
||||||
# err_exit #
|
# err_exit #
|
||||||
tst $LINENO <<"!"
|
tst $LINENO <<"!"
|
||||||
|
@ -417,7 +417,7 @@ u ^hello world\r?\n$
|
||||||
end_disabled
|
end_disabled
|
||||||
|
|
||||||
if [[ $(id -u) == 0 ]]
|
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
|
else
|
||||||
# err_exit #
|
# err_exit #
|
||||||
tst $LINENO <<"!"
|
tst $LINENO <<"!"
|
||||||
|
|
|
@ -741,7 +741,7 @@ Errors=$? # ensure error count survives subshell
|
||||||
(
|
(
|
||||||
errmsg=$({ LANG=bad_LOCALE; } 2>&1)
|
errmsg=$({ LANG=bad_LOCALE; } 2>&1)
|
||||||
if [[ -z $errmsg ]]
|
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
|
exit $Errors
|
||||||
fi
|
fi
|
||||||
x=x
|
x=x
|
||||||
|
|
Loading…
Reference in a new issue