summaryrefslogtreecommitdiffstats
path: root/tests/regression/issue_249/SConscript
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-03-02 22:04:02 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-03-02 22:21:57 +0200
commit6fca8edc847bc70fd2e9d268af06015f8e64ec15 (patch)
treeb0b1fa50c7ed3714b13e9365865477c6fe1a79e4 /tests/regression/issue_249/SConscript
parent554886611824e56cf589aa5b7c5942a1fc7bf60a (diff)
Add regression test for issue #249
Diffstat (limited to 'tests/regression/issue_249/SConscript')
-rw-r--r--tests/regression/issue_249/SConscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/regression/issue_249/SConscript b/tests/regression/issue_249/SConscript
new file mode 100644
index 00000000..ba667129
--- /dev/null
+++ b/tests/regression/issue_249/SConscript
@@ -0,0 +1,12 @@
+# Regression test for Issue 249: proto3 mode pb_decode() corrupts callback fields
+Import('env')
+
+env.NanopbProto('test')
+
+p = env.Program(["test.c",
+ "test.pb.c",
+ "$COMMON/pb_decode.o",
+ "$COMMON/pb_encode.o",
+ "$COMMON/pb_common.o"])
+env.RunTest(p)
+