4430. [bug] Lwresd died if a search list was not defined.
Found by 0x710DDDD At Alibaba Security. [RT #42895]
(cherry picked from commit 3146be6fd6)
This commit is contained in:
@@ -70,5 +70,24 @@ if [ $ret != 0 ]; then
|
||||
fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
$PERL $SYSTEMTESTTOP/stop.pl . lwresd1
|
||||
|
||||
mv lwresd1/lwresd.run lwresd1/lwresd.run.lwresd
|
||||
|
||||
$PERL $SYSTEMTESTTOP/start.pl . lwresd1 -- "-m record,size,mctx -c nosearch.conf -d 99 -g"
|
||||
|
||||
echo "I:using nosearch.conf"
|
||||
ret=0
|
||||
for i in 0 1 2 3 4 5 6 7 8 9
|
||||
do
|
||||
grep ' running$' lwresd1/lwresd.run > /dev/null && break
|
||||
sleep 1
|
||||
done
|
||||
./lwtest -nosearch || ret=1
|
||||
if [ $ret != 0 ]; then
|
||||
echo "I:failed"
|
||||
fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:exit status: $status"
|
||||
[ $status -eq 0 ] || exit 1
|
||||
|
||||
Reference in New Issue
Block a user