From 4470caec4e2fea10f5d116894ca6b3fc9d78789b Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Thu, 24 Jun 2021 17:45:51 -0700 Subject: Run `:socket_inet_loopback_isolated_test_linux` tests in a container. This creates new user and network namespaces for all tests in `:socket_inet_loopback_isolated_test_linux`. PiperOrigin-RevId: 381374120 --- test/syscalls/linux/BUILD | 2 ++ test/syscalls/linux/socket_inet_loopback_isolated.cc | 1 + 2 files changed, 3 insertions(+) (limited to 'test/syscalls/linux') diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index c7991cfaa..2bf685524 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -3196,9 +3196,11 @@ cc_binary( linkstatic = 1, deps = [ ":socket_inet_loopback_test_params", + ":socket_netlink_util", ":socket_test_util", gtest, "//test/util:test_main", + "//test/util:test_util", "@com_google_absl//absl/time", ], ) diff --git a/test/syscalls/linux/socket_inet_loopback_isolated.cc b/test/syscalls/linux/socket_inet_loopback_isolated.cc index ccb016726..ab2259b55 100644 --- a/test/syscalls/linux/socket_inet_loopback_isolated.cc +++ b/test/syscalls/linux/socket_inet_loopback_isolated.cc @@ -19,6 +19,7 @@ #include "absl/time/time.h" #include "test/syscalls/linux/socket_inet_loopback_test_params.h" #include "test/syscalls/linux/socket_test_util.h" +#include "test/util/test_util.h" // Unit tests in this file will run in their own network namespace. -- cgit v1.2.3