return FORMERR when question section is empty if COOKIE is not present
This commit is contained in:
committed by
Evan Hunt
parent
be26328849
commit
06d3106002
@@ -14,7 +14,7 @@ SYSTEMTESTTOP=..
|
||||
|
||||
status=0
|
||||
|
||||
echo_i "test name to long"
|
||||
echo_i "test name too long"
|
||||
$PERL formerr.pl -a 10.53.0.1 -p ${PORT} nametoolong > nametoolong.out
|
||||
ans=`grep got: nametoolong.out`
|
||||
if [ "${ans}" != "got: 000080010000000000000000" ];
|
||||
@@ -30,11 +30,12 @@ then
|
||||
echo_i "failed"; status=`expr $status + 1`;
|
||||
fi
|
||||
|
||||
# this one is now NOERROR
|
||||
echo_i "no questions"
|
||||
# this would be NOERROR if it included a COOKIE option,
|
||||
# but is a FORMERR without one.
|
||||
echo_i "empty question section (and no COOKIE option)"
|
||||
$PERL formerr.pl -a 10.53.0.1 -p ${PORT} noquestions > noquestions.out
|
||||
ans=`grep got: noquestions.out`
|
||||
if [ "${ans}" != "got: 000080000000000000000000" ];
|
||||
if [ "${ans}" != "got: 000080010000000000000000" ];
|
||||
then
|
||||
echo_i "failed"; status=`expr $status + 1`;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user