diff options
author | Andrés <andmarti@gmail.com> | 2021-06-04 12:16:52 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-06-04 12:16:52 -0300 |
commit | 35a9175456c5518cad3c5d278876dd1219bd24a2 (patch) | |
tree | 0104a0086555db6368f1ecfdc1a84ee907c279f2 /tests/test1.sh | |
parent | 619ded1af207f95fb8d93b0f120e0ad9d36daadf (diff) |
Added valgrind check on tests
Diffstat (limited to 'tests/test1.sh')
-rwxr-xr-x | tests/test1.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test1.sh b/tests/test1.sh index 4283c7a..37d92aa 100755 --- a/tests/test1.sh +++ b/tests/test1.sh @@ -10,9 +10,10 @@ VALGRIND_CMD='valgrind -v --log-file=${NAME}_vallog --tool=memcheck --track-orig . assert.sh assert "echo GETNUM C2 | $VALGRIND_CMD ../src/sc-im ${NAME}.sc --nocurses --nodebug --quit_afterload 2>&1 |grep -v '^$\|Interp'" "81" -#TODO: check valgrind log here -#"in use at exit: 0 bytes in 0 blocks" -#"All heap blocks were freed -- no leaks are possible" +#we check valgrind log +assert_iffound ${NAME}_vallog "definitely lost.*bytes" "0 bytes" +assert_iffound ${NAME}_vallog "indirectly lost.*bytes" "0 bytes" +assert_iffound ${NAME}_vallog "possibly lost.*bytes" "0 bytes" rm ${NAME}_vallog assert_end ${NAME} |