diff options
author | Kevin Krakauer <krakauer@google.com> | 2021-01-05 14:43:35 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-05 14:45:47 -0800 |
commit | ce7a4440cae8ee4b2a41808f967c9847cafd2937 (patch) | |
tree | d35184f0935260b6f06e6652bbddef1e12ba3e47 /pkg/sentry/socket/control/BUILD | |
parent | b06e5bc5b0913d3740b435d8753a2569220e0a33 (diff) |
Fix panic when parsing SO_TIMESTAMP cmsg
PiperOrigin-RevId: 350223482
Diffstat (limited to 'pkg/sentry/socket/control/BUILD')
-rw-r--r-- | pkg/sentry/socket/control/BUILD | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pkg/sentry/socket/control/BUILD b/pkg/sentry/socket/control/BUILD index fb7c5dc61..ebcc891b3 100644 --- a/pkg/sentry/socket/control/BUILD +++ b/pkg/sentry/socket/control/BUILD @@ -1,4 +1,4 @@ -load("//tools:defs.bzl", "go_library") +load("//tools:defs.bzl", "go_library", "go_test") package(licenses = ["notice"]) @@ -26,3 +26,17 @@ go_library( "//pkg/usermem", ], ) + +go_test( + name = "control_test", + size = "small", + srcs = ["control_test.go"], + library = ":control", + deps = [ + "//pkg/abi/linux", + "//pkg/binary", + "//pkg/sentry/socket", + "//pkg/usermem", + "@com_github_google_go_cmp//cmp:go_default_library", + ], +) |