summaryrefslogtreecommitdiffhomepage
path: root/test/util/BUILD
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2021-08-09 10:16:59 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-09 10:20:21 -0700
commit34ec00c5e775479b15ae8ad69456cef02f0a545a (patch)
treed66037f5bfbce4f21e0785ff345596ba85b65be0 /test/util/BUILD
parentc07dc3828a0330a3804514094d45e6362ae2de30 (diff)
Run raw IP socket syscall tests on Fuchsia
+ Do not check for CAP_NET_RAW on Fuchsia Fuchsia does not support capabilities the same way Linux does. Instead emulate the check for CAP_NET_RAW by checking if a raw IP sockets may be created. PiperOrigin-RevId: 389663218
Diffstat (limited to 'test/util/BUILD')
-rw-r--r--test/util/BUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/util/BUILD b/test/util/BUILD
index 4a4401ba8..3211546f5 100644
--- a/test/util/BUILD
+++ b/test/util/BUILD
@@ -8,13 +8,21 @@ package(
cc_library(
name = "capability_util",
testonly = 1,
- srcs = ["capability_util.cc"],
- hdrs = ["capability_util.h"],
+ srcs = [
+ "fuchsia_capability_util.cc",
+ "linux_capability_util.cc",
+ ],
+ hdrs = [
+ "capability_util.h",
+ "fuchsia_capability_util.h",
+ "linux_capability_util.h",
+ ],
deps = [
":cleanup",
":memory_util",
":posix_error",
":save_util",
+ ":socket_util",
":test_util",
"@com_google_absl//absl/strings",
],