From 59cba0beeabac991b123dc6826e534f7838c5961 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Wed, 11 Sep 2013 17:33:50 +0300 Subject: [PATCH] Expand extra_fields test to cover field skipping in case of streams. --- tests/extra_fields/SConscript | 4 ++++ tests/extra_fields/person_with_extra_field.pb | Bin 90 -> 124 bytes 2 files changed, 4 insertions(+) diff --git a/tests/extra_fields/SConscript b/tests/extra_fields/SConscript index a6f0e751..9227e950 100644 --- a/tests/extra_fields/SConscript +++ b/tests/extra_fields/SConscript @@ -6,5 +6,9 @@ dec = env.GetBuildPath('#basic_buffer/${PROGPREFIX}decode_buffer${PROGSUFFIX}') env.RunTest('person_with_extra_field.output', [dec, "person_with_extra_field.pb"]) env.Compare(["person_with_extra_field.output", "person_with_extra_field.expected"]) +dec = env.GetBuildPath('#basic_stream/${PROGPREFIX}decode_stream${PROGSUFFIX}') +env.RunTest('person_with_extra_field_stream.output', [dec, "person_with_extra_field.pb"]) +env.Compare(["person_with_extra_field_stream.output", "person_with_extra_field.expected"]) + dec2 = env.GetBuildPath('#alltypes/${PROGPREFIX}decode_alltypes${PROGSUFFIX}') env.RunTest('alltypes_with_extra_fields.output', [dec2, 'alltypes_with_extra_fields.pb']) diff --git a/tests/extra_fields/person_with_extra_field.pb b/tests/extra_fields/person_with_extra_field.pb index ced3057c529a7ab299fb57b7a72ce54fd7ab2f95..ffb303dd92d2a927a7309e8e147bda42884bb230 100644 GIT binary patch delta 39 ucma#5nGmH^q`=6;%)-jX&cVsW&BM#bFCZu+EFvl