summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorAdam Barth <abarth@google.com>2021-08-11 16:58:15 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-11 17:00:22 -0700
commit09b453cec07bceeb4185bc9bc951efbda366472b (patch)
tree9b91279fb9ad76294742d5a1dafd35963664054c /test/syscalls/linux
parent8d84c5a8eeb6a08de2ac4920c1e6959055ccbda1 (diff)
Fix FSSupportsMap check
Previously, this check always failed because we did not provide MAP_SHARED or MAP_PRIVATE. PiperOrigin-RevId: 390251086
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/mmap.cc2
1 files changed, 1 insertions, 1 deletions
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;
}