Add testcase for releasing memory in submessages/extensions

This commit is contained in:
Petteri Aimonen
2014-12-26 18:24:23 +02:00
parent 418f7d88b3
commit 1515cfb5c2
3 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Import("env", "malloc_env")
env.NanopbProto("mem_release.proto")
test = malloc_env.Program(["mem_release.c",
"mem_release.pb.c",
"$COMMON/pb_encode_with_malloc.o",
"$COMMON/pb_decode_with_malloc.o",
"$COMMON/pb_common_with_malloc.o",
"$COMMON/malloc_wrappers.o"])
env.RunTest(test)