summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJay Zhuang <jayzhuang@google.com>2020-05-20 18:37:22 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-20 18:40:16 -0700
commit8298c5bd4d1f836ee4c531a7bf04acff05d7099b (patch)
tree6962739aa112bf50acb7b885ec54303efec20c07
parent49d2cf287db08b1f09f1246096cabf9c9a951039 (diff)
Avoid all caps FIONREAD as test name.
PiperOrigin-RevId: 312596169
-rw-r--r--test/syscalls/linux/udp_socket_test_cases.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/syscalls/linux/udp_socket_test_cases.cc b/test/syscalls/linux/udp_socket_test_cases.cc
index 4a3ae5f3f..42521efef 100644
--- a/test/syscalls/linux/udp_socket_test_cases.cc
+++ b/test/syscalls/linux/udp_socket_test_cases.cc
@@ -1142,7 +1142,9 @@ TEST_P(UdpSocketTest, FIONREADWriteShutdown) {
EXPECT_EQ(n, sizeof(str));
}
-TEST_P(UdpSocketTest, FIONREAD) {
+// NOTE: Do not use `FIONREAD` as test name because it will be replaced by the
+// corresponding macro and become `0x541B`.
+TEST_P(UdpSocketTest, Fionread) {
// Bind s_ to loopback:TestPort.
ASSERT_THAT(bind(s_, addr_[0], addrlen_), SyscallSucceeds());