Commit 3635d8f9 authored by Mark Andrews's avatar Mark Andrews
Browse files

do not overflow exit status. [RT #42643]

parent ecff557e
......@@ -143,4 +143,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -210,4 +210,4 @@ status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -40,4 +40,4 @@ echo "I:killing reload loop"
kill `cat reload.pid`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -67,4 +67,4 @@ $PERL ../digcomp.pl knowngood.dig.out.rec dig.out.ns3 || ret=1
done
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -58,4 +58,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -150,4 +150,4 @@ fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -244,4 +244,5 @@ if [ $ret -eq 1 ] ; then
echo "I: failed"; status=1
fi
exit $status
echo "I:exit status: $status"
[ $status -eq 0 ] || exit 1
......@@ -92,4 +92,6 @@ status=`expr $status + $ret`
[ $status -eq 0 ] && echo "I:tsiggss tests all OK"
kill `cat authsock.pid`
exit $status
echo "I:exit status: $status"
[ $status -eq 0 ] || exit 1
......@@ -196,4 +196,4 @@ status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -202,4 +202,4 @@ EOF
fi
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -68,4 +68,4 @@ EOF
diff good.out dig.out || status=1
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -93,4 +93,6 @@ do
[ $ret = 0 ] || failed
[ $dumpit = 1 ] && cat verify.out.$n
done
exit $status
echo "I:exit status: $status"
[ $status -eq 0 ] || exit 1
......@@ -139,4 +139,4 @@ then
fi
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -151,4 +151,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -422,4 +422,4 @@ if test $tmp != 0 ; then echo "I:failed"; fi
status=`expr $status + $tmp`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -68,4 +68,4 @@ grep ";" dig.out.ns2
$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -58,4 +58,4 @@ if [ $count -ne 7 ] ; then echo "I:failed (count=$count)"; ret=1; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
......@@ -254,4 +254,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1
Markdown is supported
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