diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2017-04-14 11:45:57 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2017-04-14 11:45:57 +0300 |
commit | e75d20b659aced782a0017244836e415164e2d0e (patch) | |
tree | 13962119046a17c7592b993bfc49399e0e8772a6 /tests/regression/issue_256/SConscript | |
parent | 651bdc45f2180b17c132470ff1a3a515dbffaa78 (diff) |
Add testcase for issue #256
Diffstat (limited to 'tests/regression/issue_256/SConscript')
-rw-r--r-- | tests/regression/issue_256/SConscript | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/regression/issue_256/SConscript b/tests/regression/issue_256/SConscript new file mode 100644 index 0000000..b2c3e86 --- /dev/null +++ b/tests/regression/issue_256/SConscript @@ -0,0 +1,16 @@ +# Regression test for Issue 256: Proto3 mode skips submessages even when +# later array fields have non-zero value + +Import('env') + +env.NanopbProto('submsg_array') + +p = env.Program(['submsg_array.c', + 'submsg_array.pb.c', + "$COMMON/pb_decode.o", + "$COMMON/pb_encode.o", + "$COMMON/pb_common.o"]) + +env.RunTest(p) + + |