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
This commit is contained in:
Brad Burlage
2020-01-10 16:36:34 -08:00
committed by gVisor bot
parent d27208463e
commit bf6429b944
+1 -1
View File
@@ -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));
}