summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-02-15 12:13:59 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-02-20 08:53:58 +0000
commit5d581b8bd10f043e6b73fa0436d5003acaca4934 (patch)
treeaaacc10f87222881491a9d004b228ecd1d6e0bc3 /runtime/common_runtime_test.h
parent8e18c45e19e73d6e4d28c69606a4aae95e4447f7 (diff)
riscv64: Enable some gtests.
Keep tests disabled for riscv64 if they are disabled for arm and arm64. Fix `GetInstructionSetFromELF()` to recognize riscv64. This partially reverts commit 476491deb9f9abb04f25888a20280d950714048b . Test: run-gtests.sh Bug: 271573990 Change-Id: Iccf1e2b1e93ed09eaf27884c34696f42fd752ec4
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r--runtime/common_runtime_test.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h
index 0f164a7d07..8f9d7a80ff 100644
--- a/runtime/common_runtime_test.h
+++ b/runtime/common_runtime_test.h
@@ -283,6 +283,11 @@ class CheckJniAbortCatcher {
GTEST_SKIP() << "WARNING: TEST DISABLED FOR ARM64"; \
}
+#define TEST_DISABLED_FOR_RISCV64() \
+ if (kRuntimeISA == InstructionSet::kRiscv64) { \
+ GTEST_SKIP() << "WARNING: TEST DISABLED FOR RISCV64"; \
+ }
+
#define TEST_DISABLED_FOR_X86() \
if (kRuntimeISA == InstructionSet::kX86) { \
GTEST_SKIP() << "WARNING: TEST DISABLED FOR X86"; \