aboutsummaryrefslogtreecommitdiffstats
path: root/tests/regression/issue_229/SConscript
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2016-12-31 10:33:19 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2016-12-31 10:33:19 +0200
commit90a19bf0368035147a74b9b8edd65d672a03cd00 (patch)
tree023f86c1bef24cbb8c3938e0cf3562b7b9e2b299 /tests/regression/issue_229/SConscript
parent16f08f9fc8ff73e775cbf54b1024629ca7db0e58 (diff)
Add testcase for issue #229
Diffstat (limited to 'tests/regression/issue_229/SConscript')
-rw-r--r--tests/regression/issue_229/SConscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/regression/issue_229/SConscript b/tests/regression/issue_229/SConscript
new file mode 100644
index 00000000..b0f8376d
--- /dev/null
+++ b/tests/regression/issue_229/SConscript
@@ -0,0 +1,13 @@
+# Regression test for Issue 229: problem encoding message that has
+# multiple oneof fields
+Import('env')
+
+env.NanopbProto('multiple_oneof')
+
+p = env.Program(["multiple_oneof.c",
+ "multiple_oneof.pb.c",
+ "$COMMON/pb_decode.o",
+ "$COMMON/pb_encode.o",
+ "$COMMON/pb_common.o"])
+env.RunTest(p)
+