OSDN Git Service

simpleperf_cpu_hotplug_test: don't fail when cpu hotplug operation fails.
authorYabin Cui <yabinc@google.com>
Fri, 16 Sep 2016 19:31:47 +0000 (12:31 -0700)
committerYabin Cui <yabinc@google.com>
Fri, 16 Sep 2016 19:31:47 +0000 (12:31 -0700)
commitbb8e0c3cb9dbb8a95874988a2720575d5e0fe596
tree8154548a9f1e9bbd56096ffbabbbf065caecbfd4
parent6a9a166d587fa1d9693d7b694cae6c79992e475b
simpleperf_cpu_hotplug_test: don't fail when cpu hotplug operation fails.

On some devices, cpu hotplug can fail like:
failed to write 1 to /sys/devices/system/cpu/cpu4/online: Operation not permitted\n"

By avoiding these flaky failures, the tests are more stable.

Bug: http://b/31115055
Test: run simpleperf_cpu_hotplug_test.
Change-Id: Ib60c1852bee95bf4a443ba45de7def450cd30e08
simpleperf/cpu_hotplug_test.cpp