diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2021-09-16 18:53:44 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-16 18:56:08 -0700 |
commit | eccd46e67c75e164ca0e700dddc61cc1556be8d2 (patch) | |
tree | 5cb64306ed339b4cbdd7e7907e29c36be1939f1d /test/syscalls | |
parent | 51b96514cd9397870b39506e3693017a355319dd (diff) |
Rename packet_socket to packet_socket_dgram
...so that a later change can add a new packet_socket syscall test
target that holds raw/dgram packet socket generic common tests. The
current packet_socket syscall test target holds tests specific to
dgram packet sockets.
While I am here, remove the defines for the packet_socket_raw_test
target as no code is guarded with `__linux__` in the target's sources.
PiperOrigin-RevId: 397217761
Diffstat (limited to 'test/syscalls')
-rw-r--r-- | test/syscalls/BUILD | 4 | ||||
-rw-r--r-- | test/syscalls/linux/BUILD | 11 | ||||
-rw-r--r-- | test/syscalls/linux/packet_socket_dgram.cc (renamed from test/syscalls/linux/packet_socket.cc) | 0 |
3 files changed, 7 insertions, 8 deletions
diff --git a/test/syscalls/BUILD b/test/syscalls/BUILD index 3b55112e6..b66112f6e 100644 --- a/test/syscalls/BUILD +++ b/test/syscalls/BUILD @@ -359,11 +359,11 @@ syscall_test( ) syscall_test( - test = "//test/syscalls/linux:packet_socket_raw_test", + test = "//test/syscalls/linux:packet_socket_dgram_test", ) syscall_test( - test = "//test/syscalls/linux:packet_socket_test", + test = "//test/syscalls/linux:packet_socket_raw_test", ) syscall_test( diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index a4efd9486..1fcf78ddf 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -7,7 +7,7 @@ package( exports_files( [ - "packet_socket.cc", + "packet_socket_dgram.cc", "packet_socket_raw.cc", "raw_socket.cc", "raw_socket_hdrincl.cc", @@ -1441,10 +1441,9 @@ cc_binary( ) cc_binary( - name = "packet_socket_raw_test", + name = "packet_socket_dgram_test", testonly = 1, - srcs = ["packet_socket_raw.cc"], - defines = select_system(), + srcs = ["packet_socket_dgram.cc"], linkstatic = 1, deps = [ ":ip_socket_test_util", @@ -1462,9 +1461,9 @@ cc_binary( ) cc_binary( - name = "packet_socket_test", + name = "packet_socket_raw_test", testonly = 1, - srcs = ["packet_socket.cc"], + srcs = ["packet_socket_raw.cc"], linkstatic = 1, deps = [ ":ip_socket_test_util", diff --git a/test/syscalls/linux/packet_socket.cc b/test/syscalls/linux/packet_socket_dgram.cc index 9515a48f2..9515a48f2 100644 --- a/test/syscalls/linux/packet_socket.cc +++ b/test/syscalls/linux/packet_socket_dgram.cc |