OSDN Git Service

simpleperf: fix report_sample_test.
authorYabin Cui <yabinc@google.com>
Mon, 15 May 2017 20:39:36 +0000 (13:39 -0700)
committerYabin Cui <yabinc@google.com>
Wed, 13 Sep 2017 23:42:20 +0000 (16:42 -0700)
commit60cce13ceba0dc400fd4905a0c2c102650e55dad
tree22cf5e18ede4b49321aa1d9b4874ebe77ab00e72
parentb7c25d7f0aaa28af05f63e0faec4174bc7a3b2f8
simpleperf: fix report_sample_test.

When running cmd_report_sample.* tests, it may call
ReportSampleCmd()->Run() more than once. If we shutdown
protobuf library in one call, using protobuf in the
following calls will encounter failures.

Bug: http://b/37996565
Test: run CtsSimpleperfTestCases.
Change-Id: I5ca217406e786645d45fda518055c4a63ab3db3c
(cherry picked from commit b3675a5db81d02b07b92f8f13d37187a9cb4890c)
simpleperf/cmd_report_sample.cpp