summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/vsyscall.cc
diff options
context:
space:
mode:
authorBin Lu <bin.lu@arm.com>2020-02-28 14:47:34 +0800
committerBin Lu <bin.lu@arm.com>2020-02-28 14:47:50 +0800
commitdd1ed5c789ff72fd6bbacda0ff7c7acf9672d25a (patch)
tree4b68aee6e69243494fffe12985bc72f32e104009 /test/syscalls/linux/vsyscall.cc
parentc96bb4d2ebc6a24b3111d986c5d40574ec8ff660 (diff)
skip vsyscall test cases on Arm64
Signed-off-by: Bin Lu <bin.lu@arm.com>
Diffstat (limited to 'test/syscalls/linux/vsyscall.cc')
-rw-r--r--test/syscalls/linux/vsyscall.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/syscalls/linux/vsyscall.cc b/test/syscalls/linux/vsyscall.cc
index 2c2303358..ae4377108 100644
--- a/test/syscalls/linux/vsyscall.cc
+++ b/test/syscalls/linux/vsyscall.cc
@@ -24,6 +24,7 @@ namespace testing {
namespace {
+#if defined(__x86_64__) || defined(__i386__)
time_t vsyscall_time(time_t* t) {
constexpr uint64_t kVsyscallTimeEntry = 0xffffffffff600400;
return reinterpret_cast<time_t (*)(time_t*)>(kVsyscallTimeEntry)(t);
@@ -37,6 +38,7 @@ TEST(VsyscallTest, VsyscallAlwaysAvailableOnGvisor) {
time_t t;
EXPECT_THAT(vsyscall_time(&t), SyscallSucceeds());
}
+#endif
} // namespace