Page MenuHomeFreeBSD

tests/pf/nat: endpoint_independent: wait for tcpdump to start
AcceptedPublic

Authored by siva on Sun, Mar 29, 2:45 PM.
Tags
None
Referenced Files
F152661794: D56145.diff
Thu, Apr 16, 8:54 AM
F152661730: D56145.id174965.diff
Thu, Apr 16, 8:54 AM
Unknown Object (File)
Wed, Apr 15, 12:14 PM
Unknown Object (File)
Tue, Apr 14, 11:13 PM
Unknown Object (File)
Tue, Apr 14, 2:16 PM
Unknown Object (File)
Sun, Apr 12, 9:10 PM
Unknown Object (File)
Sun, Apr 12, 7:00 PM
Unknown Object (File)
Fri, Apr 10, 11:35 PM

Details

Summary

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71792
Build 68675: arc lint + arc unit

Event Timeline

siva requested review of this revision.Sun, Mar 29, 2:45 PM
glebius requested changes to this revision.Thu, Apr 2, 4:30 PM

I already went through this in other test cases. A sleep for a second makes test slower to execute but still doesn't give a 100% protection against flakyness. When tests are executed in parallel on a slow machine you may still have a failure sometimes. Here is the solution I came to so far, poll until tcpdump(1)s are all blocked on "bpf" wait channel. See 38edf96b1787ce3d8c00e4466348dab891c7a9ea.

This revision now requires changes to proceed.Thu, Apr 2, 4:30 PM

Thanks for the feedback, this approach looks good. I've tested it with 2000+ runs,
the flakiness is gone.

This revision is now accepted and ready to land.Fri, Apr 10, 3:37 PM