diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-14 07:28:28 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-14 07:28:28 +0000 |
commit | 74fe0c4226f1cf45ccebaa15973f5f631d284679 (patch) | |
tree | a18e6c10ea25f6cccda4fcda1420d93f8e9d95b0 /simpleperf/test_util.h | |
parent | 65ce74ebd4c06567bea3a6a4e843ad37a59c1bd3 (diff) | |
parent | 3035e41eb6d6e6dc89520aada7f74dc874c14a56 (diff) | |
download | extras-74fe0c4226f1cf45ccebaa15973f5f631d284679.tar.gz |
release-request-f0fc1aa1-730c-4deb-b1ff-e8ebeeccc4b5-for-git_oc-mr1-release-4335659 snap-temp-L85900000102427279
Change-Id: I28277470b5e2b2ee4e73de62721fd04b3b9a56d4
Diffstat (limited to 'simpleperf/test_util.h')
-rw-r--r-- | simpleperf/test_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/simpleperf/test_util.h b/simpleperf/test_util.h index f242c896..5d214269 100644 --- a/simpleperf/test_util.h +++ b/simpleperf/test_util.h @@ -40,3 +40,13 @@ bool IsRoot(); GTEST_LOG_(INFO) << "Didn't test \"" << #TestStatement << "\" requires root privileges"; \ } \ } while (0) + +bool IsInNativeAbi(); +// Used to skip tests not supposed to run on non-native ABIs. +#define OMIT_TEST_ON_NON_NATIVE_ABIS() \ + do { \ + if (!IsInNativeAbi()) { \ + GTEST_LOG_(INFO) << "Skip this test as it only runs on native ABIs."; \ + return; \ + } \ + } while (0) |