aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-07-16 11:07:34 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-07-16 11:07:34 +0300
commita01856f4ab7f51f129dda7387acca8a63d039105 (patch)
tree55a4ef4594707fc48dd002575bc53d583c8d979d
parentbb985e99274b537ee662d630b02664a3825d8829 (diff)
Add test case for extra fields in AllTypes
-rw-r--r--tests/Makefile1
-rw-r--r--tests/alltypes_with_extra_fields.pbbin0 -> 523 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 40fcabe..16f62e5 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -123,6 +123,7 @@ run_unittests: $(TESTS)
./test_encode3 1 | ./test_decode3 1
./test_encode3 1 | protoc --decode=AllTypes -I. -I../generator -I/usr/include alltypes.proto >/dev/null
./test_encode3_buf 1 | ./test_decode3_buf 1
+ ./test_decode3 < alltypes_with_extra_fields.pb
./bc_encode | ./bc_decode
./test_missing_fields
diff --git a/tests/alltypes_with_extra_fields.pb b/tests/alltypes_with_extra_fields.pb
new file mode 100644
index 0000000..f9f5394
--- /dev/null
+++ b/tests/alltypes_with_extra_fields.pb
Binary files differ