8002116: This JdbReadTwiceTest.sh gets an exit 1
Explicitly check readability of file in question Reviewed-by: sla, dholmes, olagneau
This commit is contained in:
parent
aab73f9356
commit
2489c7b220
@ -213,7 +213,14 @@ if [ ! -r c:/ ] ; then
|
|||||||
# If the file exists, we try to read it. The
|
# If the file exists, we try to read it. The
|
||||||
# read will fail.
|
# read will fail.
|
||||||
mkFiles $HOME/jdb.ini
|
mkFiles $HOME/jdb.ini
|
||||||
|
id > $HOME/jdb.ini
|
||||||
chmod a-r $HOME/jdb.ini
|
chmod a-r $HOME/jdb.ini
|
||||||
|
if grep -q "uid=" $HOME/jdb.ini ; then
|
||||||
|
echo "Unable to make file unreadable, so test will fail. chmod: $HOME/jdb.ini"
|
||||||
|
if grep -q "uid=0" $HOME/jdb.ini ; then
|
||||||
|
echo "The test is running as root. Fix infrastructure!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
doit
|
doit
|
||||||
failIfNot 1 "open: $HOME/jdb.ini"
|
failIfNot 1 "open: $HOME/jdb.ini"
|
||||||
clean
|
clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user