diff options
author | Yabin Cui <yabinc@google.com> | 2016-12-14 17:43:26 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2017-02-15 11:44:40 -0800 |
commit | f560a6fdf092f0c03c0e7a92d62948d34318146a (patch) | |
tree | a22ca918c3b47945afd8d33ada7ca58329bf6069 /simpleperf/cmd_report_test.cpp | |
parent | 264b69316cd385d887a2c7beb289eea5b0a9f05d (diff) | |
download | extras-f560a6fdf092f0c03c0e7a92d62948d34318146a.tar.gz |
simpleperf: build cts test running in app context.
When built for cts test, the test binary uses run-as to move itself
to the data directory of debuggable app 'com.android.simpleperf',
and run the tests in app context using run-as.
Bug: http://b/18790309
Test: run cts-tradefed, 'run everything -m CtsSimpleperfTestCase'.
Change-Id: I523470bb8062cb944b44dc6f264a8b1c14221b62
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r-- | simpleperf/cmd_report_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp index f445bd5a..9a5c23bd 100644 --- a/simpleperf/cmd_report_test.cpp +++ b/simpleperf/cmd_report_test.cpp @@ -45,6 +45,7 @@ class ReportCommandTest : public ::testing::Test { const std::string& perf_data, const std::vector<std::string>& add_args = std::vector<std::string>()) { success = false; + TemporaryFile tmp_file; std::vector<std::string> args = { "-i", perf_data, "--symfs", GetTestDataDir(), "-o", tmp_file.path}; args.insert(args.end(), add_args.begin(), add_args.end()); @@ -63,7 +64,6 @@ class ReportCommandTest : public ::testing::Test { success = true; } - TemporaryFile tmp_file; std::string content; std::vector<std::string> lines; bool success; |