fix merge error

This commit is contained in:
yihaoDeng 2023-08-30 18:18:21 +08:00
parent a1c55d0584
commit 2ed576748a
1 changed files with 10 additions and 1 deletions

View File

@ -31,7 +31,16 @@ TAOS_DIR=`pwd`
LOG_DIR=$TAOS_DIR/sim/asan
error_num=`cat ${LOG_DIR}/*.asan | grep "ERROR" | wc -l`
memory_leak=`cat ${LOG_DIR}/*.asan | grep "Direct leak" | wc -l`
archOs=`arch`
if [[ $archOs =~ "aarch64" ]];then
echo "arm64 check mem leak"
memory_leak=`cat ${LOG_DIR}/*.asan | grep "Direct leak" | grep -v ""Direct leak of 32 byte"| wc -l`
else
memory_leak=`cat ${LOG_DIR}/*.asan | grep "Direct leak" | wc -l`
fi
indirect_leak=`cat ${LOG_DIR}/*.asan | grep "Indirect leak" | wc -l`
python_error=`cat ${LOG_DIR}/*.info | grep -w "stack" | wc -l`