summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2020-08-18 12:55:06 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-18 12:56:44 -0700
commit4141dc0d2c8c46b14dbae83aab304fa338ebafc5 (patch)
tree69e230c5fe1114a4c20a6ad5e18992ea31369b2e /test
parentb3141b680ffc0e4ad87b3cba5ca28e3e8d5b1db1 (diff)
Fix timeval for Socket test
tv_usec field should be a multiple of 4K to pass in open source on linux/native, so make it one. PiperOrigin-RevId: 327288405
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/linux/socket_generic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/socket_generic.cc b/test/syscalls/linux/socket_generic.cc
index a6182f0ac..5d39e6fbd 100644
--- a/test/syscalls/linux/socket_generic.cc
+++ b/test/syscalls/linux/socket_generic.cc
@@ -463,7 +463,7 @@ TEST_P(AllSocketPairTest, SetGetSendTimeout) {
auto sockets = ASSERT_NO_ERRNO_AND_VALUE(NewSocketPair());
// tv_usec should be a multiple of 4000 to work on most systems.
- timeval tv = {.tv_sec = 89, .tv_usec = 42000};
+ timeval tv = {.tv_sec = 89, .tv_usec = 44000};
EXPECT_THAT(
setsockopt(sockets->first_fd(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)),
SyscallSucceeds());