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/lseek.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/lseek.cc')
-rw-r--r-- | test/syscalls/linux/lseek.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/lseek.cc b/test/syscalls/linux/lseek.cc index 6ce1e6cc3..d4f89527c 100644 --- a/test/syscalls/linux/lseek.cc +++ b/test/syscalls/linux/lseek.cc @@ -150,7 +150,7 @@ TEST(LseekTest, SeekCurrentDir) { // From include/linux/fs.h. constexpr loff_t MAX_LFS_FILESIZE = 0x7fffffffffffffff; - char* dir = get_current_dir_name(); + char* dir = getcwd(NULL, 0); const FileDescriptor fd = ASSERT_NO_ERRNO_AND_VALUE(Open(dir, O_RDONLY)); ASSERT_THAT(lseek(fd.get(), 0, SEEK_CUR), SyscallSucceeds()); |