Fix authentication tests so they work for both unix and NT.

This commit is contained in:
relyea%netscape.com 2000-09-14 21:59:04 +00:00
Родитель e887a95156
Коммит 72a1e1abc8
1 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -252,7 +252,21 @@ do
pwd
echo "tstclnt -p ${PORT} -h ${HOST} -f -d ${CLIENTDIR} ${cparam}"
tstclnt -p ${PORT} -h ${HOST} -f -d ${CLIENTDIR} ${cparam} < ${REQUEST_FILE}
if [ $? $value 0 ]; then
ret=$?
#
# for some reason the NT client does not return the same error code as Unix
# (sigh).
#
if [ ${OS_ARCH} = "WINNT" ]; then
if [ $value -ne 0 ]; then
if [ $ret -ne 0]; then
value=$ret
fi
fi
fi
if [ $ret -ne $value ]; then
echo "<TR><TD>"${testname}"</TD><TD bgcolor=red>Failed</TD><TR>" >> ${RESULTS}
else
echo "<TR><TD>"${testname}"</TD><TD bgcolor=lightGreen>Passed</TD><TR>" >> ${RESULTS}