diff options
author | Tony Gong <gongt@google.com> | 2020-06-12 15:06:01 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-12 15:07:17 -0700 |
commit | 82313667ea4bd56d64dd1f7898aa80942684ca2c (patch) | |
tree | c4161a0448d6d06796172ecd2a4efd86bbb60ee4 /pkg/sentry/kernel/task_run.go | |
parent | 6ec9d60403fdf7a33072eaa023e62bfd56ed9f5c (diff) |
Make GenerateRandomPayload available to all tests
Moved the function for generating a payload of random byets of a specified
length into the testbench package so that it's availbale for all tests to use.
Added a test case to the IPv4 ID uniqueness test which uses a payload length
of 512 bytes. This test case passes for gVisor currently, whereas the test case
with a small payload of 11 bytes fails because gVisor only assigns the ID field
if the IP payload is sufficiently large.
PiperOrigin-RevId: 316185097
Diffstat (limited to 'pkg/sentry/kernel/task_run.go')
0 files changed, 0 insertions, 0 deletions