[test: add valgrind case]

This commit is contained in:
plum-lihui 2022-04-20 20:29:50 +08:00
parent 66400aff66
commit 3ecf6df9e3
2 changed files with 12 additions and 2 deletions

View File

@ -93,4 +93,7 @@
# --- sma
./test.sh -f tsim/sma/tsmaCreateInsertData.sim
# --- valgrind
./test.sh -f tsim/valgrind/checkError.sim -v
#======================b1-end===============

View File

@ -71,6 +71,13 @@ print ====> start to check if there are ERRORS in vagrind log file for each dnod
# -n : dnode[x] be check
system_content sh/checkValgrind.sh -n dnode1
print cmd return result----> [ $system_content ]
if $system_content != @ERROR SUMMARY: 0 errors@ then
return -1
if $system_content == @ERROR SUMMARY: 0 errors@ then
return 0
endi
$null=
if $system_content == $null then
return 0
endi
return -1