Skip to content

Commit

Permalink
test(bats): 🧪 raise an error in case of memory left allocalted
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino authored and jaromil committed Oct 19, 2023
1 parent d751246 commit 4e83451
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/bats_zencode
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ zexe() {
# export output=`cat $TMP/out`
dep=`cat $tmperr | grep 'DEPRECATED:' -A 3 || true`
if [ "$dep" != "" ] && [ $status == 0 ]; then status=255; fi
mem=`cat $tmperr | grep 'Zenroom memory left allocated' || true`
if [ "$mem" != "" ] && [ $status == 0 ]; then status=255; fi
return $status
}

Expand Down

0 comments on commit 4e83451

Please sign in to comment.