summaryrefslogtreecommitdiffstats
path: root/tests/regression/issue_247/SConscript
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-02-25 21:22:41 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-02-25 21:22:41 +0200
commitefb9a31c36b369e1b3cedfb72d58b634aae1d30c (patch)
treedc862617651734d4d86a35f51308a233cd5c402d /tests/regression/issue_247/SConscript
parentb5abefc25d033f7e12e369f5c664f1f0efaf398b (diff)
Add testcase for issue #247
Diffstat (limited to 'tests/regression/issue_247/SConscript')
-rw-r--r--tests/regression/issue_247/SConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/regression/issue_247/SConscript b/tests/regression/issue_247/SConscript
new file mode 100644
index 00000000..b41e9f29
--- /dev/null
+++ b/tests/regression/issue_247/SConscript
@@ -0,0 +1,14 @@
+# Test that pb_check_proto3_default_value() correctly skips padding
+# bytes in submessage structures.
+
+Import("env")
+
+env.NanopbProto("padding")
+
+p = env.Program(["padding.c",
+ "padding.pb.c",
+ "$COMMON/pb_encode.o",
+ "$COMMON/pb_common.o"])
+
+env.RunTest(p)
+