summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorEtienne Perot <eperot@google.com>2021-06-24 17:45:51 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-24 17:49:09 -0700
commit4470caec4e2fea10f5d116894ca6b3fc9d78789b (patch)
tree80f38783a5c1f948663965b020ad6511e042c249 /test/syscalls/linux
parent3e46b660b97ab3fc995ac3f838fc7ddf1bd96a1b (diff)
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
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/BUILD2
-rw-r--r--test/syscalls/linux/socket_inet_loopback_isolated.cc1
2 files changed, 3 insertions, 0 deletions
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.