Files
Petteri Aimonen e5638c655f Fix compilation error with fixed size array and FT_POINTER (#630)
Wrong order of conditions in generator caused the fixed size constraint
to be ignored in data type declaration. Fixed and added unit test coverage.
2022-11-23 11:41:22 +02:00

16 lines
452 B
Python

# Test that fixed count option works.
Import("malloc_env")
malloc_env.NanopbProto("fixed_count")
malloc_env.Object("fixed_count.pb.c")
p = malloc_env.Program(["fixed_count_unittests.c",
"fixed_count.pb.c",
"$COMMON/pb_encode_with_malloc.o",
"$COMMON/pb_decode_with_malloc.o",
"$COMMON/pb_common_with_malloc.o",
"$COMMON/malloc_wrappers.o"])
malloc_env.RunTest(p)