summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/ioctl.cc
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2019-12-05 17:27:15 -0800
committergVisor bot <gvisor-bot@google.com>2019-12-05 17:28:52 -0800
commit13f0f6069af4d49e236cbee4f0284c190784db37 (patch)
tree1d27aaa404c84bf46ed2495ae83bac56c3d6f787 /test/syscalls/linux/ioctl.cc
parentf053c528122c246b4a454de54dacfffe0f7964f0 (diff)
Implement F_GETOWN_EX and F_SETOWN_EX.
Some versions of glibc will convert F_GETOWN fcntl(2) calls into F_GETOWN_EX in some cases. PiperOrigin-RevId: 284089373
Diffstat (limited to 'test/syscalls/linux/ioctl.cc')
-rw-r--r--test/syscalls/linux/ioctl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syscalls/linux/ioctl.cc b/test/syscalls/linux/ioctl.cc
index c4f8bff08..b0a07a064 100644
--- a/test/syscalls/linux/ioctl.cc
+++ b/test/syscalls/linux/ioctl.cc
@@ -215,7 +215,8 @@ TEST_F(IoctlTest, FIOASYNCSelfTarget2) {
auto mask_cleanup =
ASSERT_NO_ERRNO_AND_VALUE(ScopedSignalMask(SIG_UNBLOCK, SIGIO));
- pid_t pid = getpid();
+ pid_t pid = -1;
+ EXPECT_THAT(pid = getpid(), SyscallSucceeds());
EXPECT_THAT(ioctl(pair->second_fd(), FIOSETOWN, &pid), SyscallSucceeds());
int set = 1;