8000 Accept EMSGSIZE in native run for RawPacketMsgSizeTest.SpliceTooLong. by copybara-service[bot] · Pull Request #11757 · google/gvisor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Accept EMSGSIZE in native run for RawPacketMsgSizeTest.SpliceTooLong. #11757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/syscalls/linux/packet_socket_raw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,10 @@ TEST_P(RawPacketMsgSizeTest, SpliceTooLong) {
if (IsRunningOnGvisor()) {
EXPECT_THAT(n, SyscallFailsWithErrno(EMSGSIZE));
} else {
// TODO(gvisor.dev/issue/138): Linux sends out multiple UDP datagrams, each
// of the size of a page.
EXPECT_THAT(n, SyscallSucceedsWithValue(sizeof(buf)));
// Older versions of Linux sends out multiple UDP datagrams, each of the
// size of a page. Since Linux 6.5, Linux also returns EMSGSIZE.
EXPECT_THAT(n, AnyOf(SyscallFailsWithErrno(EMSGSIZE),
SyscallSucceedsWithValue(sizeof(buf))));
}
}
#endif // __Fuchsia__
Expand Down
Loading
0