From a01856f4ab7f51f129dda7387acca8a63d039105 Mon Sep 17 00:00:00 2001
From: Petteri Aimonen <jpa@git.mail.kapsi.fi>
Date: Tue, 16 Jul 2013 11:07:34 +0300
Subject: [PATCH] Add test case for extra fields in AllTypes

---
 tests/Makefile                      |   1 +
 tests/alltypes_with_extra_fields.pb | Bin 0 -> 523 bytes
 2 files changed, 1 insertion(+)
 create mode 100644 tests/alltypes_with_extra_fields.pb

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 0000000000000000000000000000000000000000..f9f539413c594fc7f5b6030db41193dd51b6b9cc
GIT binary patch
literal 523
zcmd;>{^S3Det~H~5)2q6Ub8E_Vb{3HZ*ZI6g3<K@GXsM!|DXT=Lm3)sTp~XMxge0p
z0~7**OfYvvze5p=p@E@E6^Jx#V&vrlG0X&huwS~&#L&U0HHndlgJBUP!zxBjkdE~q
zfVOU8<O8wS0oh={xQmeuBygGk5QK4s{}hC=QvMQzv0DBXBP&P^<0D295RD9Ourn~c
z!W32q`t1{@FoVNymtTw;$Od3z-v$~A0!>T=m8w7kv5T-$u#qM69VRg`AR!hbU=Yq?
zVn9M5A=5=n99#?n44|MSf+@rW(qty^fM50j(D5K$tC+xnrnQL)7z@~l8EmIH02t|S
A;Q#;t

literal 0
HcmV?d00001

-- 
2.16.6