summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorBrad Burlage <brb@google.com>2020-01-10 16:34:59 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-10 16:36:34 -0800
commitbf6429b944aed6de073c62ceb446cfaed5042dbc (patch)
tree4d911683e1ab9fcd268c5b36c3e0d7bf0288d22c /test/syscalls/linux
parentd27208463e93c01d4e39c0450c3b27c00c466728 (diff)
Don't set RWF_HIPRI on InvalidOffset test.
This test fails on ubuntu 18.04 because preadv2 for some reason returns EOPNOTSUPP instead of EINVAL. Instead of root-causing the failure, I'm dropping the flag in the preadv2 call since it isn't under test in this scenario. PiperOrigin-RevId: 289188358
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/preadv2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/preadv2.cc b/test/syscalls/linux/preadv2.cc
index c9246367d..cd936ea90 100644
--- a/test/syscalls/linux/preadv2.cc
+++ b/test/syscalls/linux/preadv2.cc
@@ -202,7 +202,7 @@ TEST(Preadv2Test, TestInvalidOffset) {
iov[0].iov_len = 0;
EXPECT_THAT(preadv2(fd.get(), iov.get(), /*iovcnt=*/1, /*offset=*/-8,
- /*flags=*/RWF_HIPRI),
+ /*flags=*/0),
SyscallFailsWithErrno(EINVAL));
}