diff options
author | Adam Barth <abarth@google.com> | 2021-05-21 20:17:34 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-21 20:20:49 -0700 |
commit | f77a24966e75271a30ee5a4eefdb90edc2eacb9e (patch) | |
tree | 9256b42dd9a91ea3f34b93ee6f391045ccd31d24 /test/syscalls/linux/read.cc | |
parent | 7675ccfc1a5509aa2a256dc30cc435d92204c130 (diff) |
Make many tests build with NDK.
Not all the tests build yet, but many of them do now.
PiperOrigin-RevId: 375209824
Diffstat (limited to 'test/syscalls/linux/read.cc')
-rw-r--r-- | test/syscalls/linux/read.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syscalls/linux/read.cc b/test/syscalls/linux/read.cc index 7056342d7..7756af24d 100644 --- a/test/syscalls/linux/read.cc +++ b/test/syscalls/linux/read.cc @@ -157,7 +157,8 @@ TEST_F(ReadTest, PartialReadSIGSEGV) { .iov_len = size, }, }; - EXPECT_THAT(preadv(fd.get(), iov, ABSL_ARRAYSIZE(iov), 0), + EXPECT_THAT(lseek(fd.get(), 0, SEEK_SET), SyscallSucceeds()); + EXPECT_THAT(readv(fd.get(), iov, ABSL_ARRAYSIZE(iov)), SyscallSucceedsWithValue(size)); } |