summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/vsyscall.cc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-03 13:48:00 -0800
committergVisor bot <gvisor-bot@google.com>2020-03-03 13:48:00 -0800
commitba8b8154e85c0230ebe25149fa6cf9d24a03441d (patch)
tree6cb0511cc4e462787edf4ef4f6b3710b6272f8b3 /test/syscalls/linux/vsyscall.cc
parent3aa97c893dbbf3945c8812ebf158306921343dc8 (diff)
parentdd1ed5c789ff72fd6bbacda0ff7c7acf9672d25a (diff)
Merge pull request #2008 from lubinszARM:pr_skip_vsyscall
PiperOrigin-RevId: 298683693
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