diff options
author | Ting-Yu Wang <anivia@google.com> | 2021-01-15 12:48:58 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-15 12:51:08 -0800 |
commit | f1420cf48418c01694eaf3110ac411915b217d36 (patch) | |
tree | 0c1bfcef59170f85100c4f4c4a0e2a602d699064 /test/syscalls/linux/BUILD | |
parent | f7f66c8c6cb5284afe11f4571568866e3c605466 (diff) |
Add sanity check on return values from Write
io.Writer.Write requires err to be non-nil if n < len(v).
We could allow this but it will be irreversible if users depend on this
behavior.
Ported the test that discovered this.
PiperOrigin-RevId: 352065946
Diffstat (limited to 'test/syscalls/linux/BUILD')
-rw-r--r-- | test/syscalls/linux/BUILD | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index 017f997de..d184712e3 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -2304,9 +2304,11 @@ cc_binary( deps = [ ":ip_socket_test_util", ":socket_test_util", + "@com_google_absl//absl/strings", gtest, "//test/util:test_main", "//test/util:test_util", + "//test/util:thread_util", ], ) |