diff options
author | Ting-Yu Wang <anivia@google.com> | 2020-09-16 14:10:58 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-16 14:12:22 -0700 |
commit | 666397c5c82ee18a776491919312d19cfe6d4a07 (patch) | |
tree | 09ef6fd6f90d09ca7005cecfe4ff1e60ca6d09d4 /pkg/tcpip/link/rawfile/BUILD | |
parent | 0356c7ef32dfcc05b1f5e7f242a022883a9ba816 (diff) |
Gracefully translate unknown errno.
Neither POSIX.1 nor Linux defines an upperbound for errno.
PiperOrigin-RevId: 332085017
Diffstat (limited to 'pkg/tcpip/link/rawfile/BUILD')
-rw-r--r-- | pkg/tcpip/link/rawfile/BUILD | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkg/tcpip/link/rawfile/BUILD b/pkg/tcpip/link/rawfile/BUILD index 14b527bc2..6c410c5a6 100644 --- a/pkg/tcpip/link/rawfile/BUILD +++ b/pkg/tcpip/link/rawfile/BUILD @@ -1,4 +1,4 @@ -load("//tools:defs.bzl", "go_library") +load("//tools:defs.bzl", "go_library", "go_test") package(licenses = ["notice"]) @@ -18,3 +18,14 @@ go_library( "@org_golang_x_sys//unix:go_default_library", ], ) + +go_test( + name = "rawfile_test", + srcs = [ + "errors_test.go", + ], + library = "rawfile", + deps = [ + "//pkg/tcpip", + ], +) |