OSDN Git Service

Simpleperf: fix flaky tests.
authorYabin Cui <yabinc@google.com>
Mon, 27 Jun 2016 23:00:20 +0000 (16:00 -0700)
committerYabin Cui <yabinc@google.com>
Mon, 27 Jun 2016 23:00:20 +0000 (16:00 -0700)
commita486a4b8aeeffb7bd0574134ca16c9ca1c061847
treeb3ff9876fd63f36cdd110224d70772a8cff1164e
parent041bdd8e102e20cc8345560f037a8b032bd132e8
Simpleperf: fix flaky tests.

Simpleperf stat/record command may need 1 second to set security.perf_harden
property. So the monitored child threads should run longer than 1 second.

Bug: 29763505
Change-Id: I9bf6dcba03f3fc5c91130f38a08ce0062e104103
simpleperf/cmd_record_test.cpp
simpleperf/cmd_stat_test.cpp