summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-10-26 14:13:55 -0700
committergVisor bot <gvisor-bot@google.com>2020-10-26 14:15:55 -0700
commit0bdcee38bdfa5c4585d28a0edd0c46e170cdc9b5 (patch)
treeae46b77e64a7a3f917a13a060b89482b83f749e6 /test/syscalls
parent7926a9e28da8852954961af2aea0a280b6bbd210 (diff)
Fix SCM Rights S/R reference leak.
Control messages collected when peeking into a socket were being leaked. PiperOrigin-RevId: 339114961
Diffstat (limited to 'test/syscalls')
-rw-r--r--test/syscalls/linux/socket_unix_cmsg.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/syscalls/linux/socket_unix_cmsg.cc b/test/syscalls/linux/socket_unix_cmsg.cc
index dc5dcf6b9..a16899493 100644
--- a/test/syscalls/linux/socket_unix_cmsg.cc
+++ b/test/syscalls/linux/socket_unix_cmsg.cc
@@ -630,9 +630,7 @@ TEST_P(UnixSocketPairCmsgTest, FDPassNotCoalesced) {
TransferTest(pair2->first_fd(), pair2->second_fd());
}
-// TODO(b/171425923): Enable random/cooperative save once fixed.
-TEST_P(UnixSocketPairCmsgTest, FDPassPeek_NoRandomSave) {
- const DisableSave ds;
+TEST_P(UnixSocketPairCmsgTest, FDPassPeek) {
auto sockets = ASSERT_NO_ERRNO_AND_VALUE(NewSocketPair());
char sent_data[20];