Commit 844680ba authored by Howard Chu's avatar Howard Chu
Browse files

ITS#6404 fix exit codes

parent 20655ca4
...@@ -152,7 +152,7 @@ fi ...@@ -152,7 +152,7 @@ fi
grep "query template" $LOG2 > /dev/null grep "query template" $LOG2 > /dev/null
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
echo "Debug messages unavailable, test aborted..." echo "Debug messages unavailable, remaining test skipped..."
test $KILLSERVERS != no && kill -HUP $KILLPIDS && wait test $KILLSERVERS != no && kill -HUP $KILLPIDS && wait
exit 0 exit 0
fi fi
...@@ -256,7 +256,7 @@ case $RC in ...@@ -256,7 +256,7 @@ case $RC in
0) 0)
echo "ldapsearch should have failed!" echo "ldapsearch should have failed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC exit 1
;; ;;
4) 4)
echo "ldapsearch failed ($RC)" echo "ldapsearch failed ($RC)"
...@@ -283,7 +283,7 @@ case $RC in ...@@ -283,7 +283,7 @@ case $RC in
0) 0)
echo "ldapsearch should have failed!" echo "ldapsearch should have failed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC exit 1
;; ;;
4) 4)
echo "ldapsearch failed ($RC)" echo "ldapsearch failed ($RC)"
...@@ -406,7 +406,7 @@ case $RC in ...@@ -406,7 +406,7 @@ case $RC in
0) 0)
echo "ldapsearch should have failed!" echo "ldapsearch should have failed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC exit 1
;; ;;
4) 4)
echo "ldapsearch failed ($RC)" echo "ldapsearch failed ($RC)"
...@@ -433,7 +433,7 @@ case $RC in ...@@ -433,7 +433,7 @@ case $RC in
0) 0)
echo "ldapsearch should have failed!" echo "ldapsearch should have failed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC exit 1
;; ;;
4) 4)
echo "ldapsearch failed ($RC)" echo "ldapsearch failed ($RC)"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment