diff options
-rw-r--r-- | tests/mem_release/mem_release.c | 2 | ||||
-rw-r--r-- | tests/mem_release/mem_release.proto | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/mem_release/mem_release.c b/tests/mem_release/mem_release.c index 40fdc9e4..dc6f87de 100644 --- a/tests/mem_release/mem_release.c +++ b/tests/mem_release/mem_release.c @@ -25,6 +25,8 @@ static void fill_TestMessage(TestMessage *msg) msg->static_req_submsg.dynamic_submsg = test_msg_arr; msg->static_req_submsg.dynamic_submsg[1].dynamic_str = "abc"; msg->static_opt_submsg.dynamic_str = "abc"; + msg->static_rep_submsg_count = 2; + msg->static_rep_submsg[1].dynamic_str = "abc"; msg->has_static_opt_submsg = true; msg->dynamic_submsg = &msg->static_req_submsg; diff --git a/tests/mem_release/mem_release.proto b/tests/mem_release/mem_release.proto index c3b38c8b..0816dc22 100644 --- a/tests/mem_release/mem_release.proto +++ b/tests/mem_release/mem_release.proto @@ -13,6 +13,7 @@ message TestMessage required SubMessage static_req_submsg = 1 [(nanopb).type = FT_STATIC]; optional SubMessage dynamic_submsg = 2 [(nanopb).type = FT_POINTER]; optional SubMessage static_opt_submsg = 3 [(nanopb).type = FT_STATIC]; + repeated SubMessage static_rep_submsg = 4 [(nanopb).type = FT_STATIC, (nanopb).max_count=2]; extensions 100 to 200; } |