diff options
author | Sam Balana <sbalana@google.com> | 2020-05-07 14:45:05 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-07 14:46:51 -0700 |
commit | 9242d3493d7be2d5c105c8503a73ffd46bbd59e1 (patch) | |
tree | 83246e6a24b7ea31e2ba9dac3d4e8822f857ad5c /pkg/sentry/syscalls/BUILD | |
parent | 9115f26851b6f00ae01e9c130e3b5b342495c9e5 (diff) |
Capture range variable in parallel subtests
Only the last test was running before since the goroutines won't be executed
until after this loop. I added t.Log(test.name) and this is was the result:
TestListenNoAcceptNonUnicastV4/SourceUnspecified: DestOtherMulticast
TestListenNoAcceptNonUnicastV4/DestUnspecified: DestOtherMulticast
TestListenNoAcceptNonUnicastV4/DestOtherMulticast: DestOtherMulticast
TestListenNoAcceptNonUnicastV4/SourceBroadcast: DestOtherMulticast
TestListenNoAcceptNonUnicastV4/DestOurMulticast: DestOtherMulticast
TestListenNoAcceptNonUnicastV4/DestBroadcast: DestOtherMulticast
TestListenNoAcceptNonUnicastV4/SourceOtherMulticast: DestOtherMulticast
TestListenNoAcceptNonUnicastV4/SourceOurMulticast: DestOtherMulticast
https://github.com/golang/go/wiki/TableDrivenTests#parallel-testing
PiperOrigin-RevId: 310440629
Diffstat (limited to 'pkg/sentry/syscalls/BUILD')
0 files changed, 0 insertions, 0 deletions