From: Petteri Aimonen Date: Tue, 16 Jul 2013 08:07:34 +0000 (+0300) Subject: Add test case for extra fields in AllTypes X-Git-Tag: 5.0.2~186^2~367 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=a01856f4ab7f51f129dda7387acca8a63d039105;p=apps%2Fagl-service-can-low-level.git Add test case for extra fields in AllTypes --- diff --git a/tests/Makefile b/tests/Makefile index 40fcabe0..16f62e5c 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 00000000..f9f53941 Binary files /dev/null and b/tests/alltypes_with_extra_fields.pb differ