From 09b453cec07bceeb4185bc9bc951efbda366472b Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 11 Aug 2021 16:58:15 -0700 Subject: Fix FSSupportsMap check Previously, this check always failed because we did not provide MAP_SHARED or MAP_PRIVATE. PiperOrigin-RevId: 390251086 --- test/syscalls/linux/mmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/syscalls/linux') diff --git a/test/syscalls/linux/mmap.cc b/test/syscalls/linux/mmap.cc index caad575cf..fda176261 100644 --- a/test/syscalls/linux/mmap.cc +++ b/test/syscalls/linux/mmap.cc @@ -795,7 +795,7 @@ class MMapFileTest : public MMapTest { bool FSSupportsMap() const { bool supported = true; - void* ret = mmap(nullptr, 1, PROT_NONE, 0, fd_.get(), 0); + void* ret = mmap(nullptr, 1, PROT_NONE, MAP_PRIVATE, fd_.get(), 0); if (ret == MAP_FAILED && errno != ENODEV) { supported = false; } -- cgit v1.2.3