summaryrefslogtreecommitdiffstats
path: root/src/plugins/mactime/mactime_test.c
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2019-10-13 10:09:50 +0000
committerOle Trøan <otroan@employees.org>2019-10-14 21:55:01 +0000
commit8d829f6c480cdd6536537fc49356baa1878b9570 (patch)
tree6f8ebdc9162e5311b551cd409717811f6313dc91 /src/plugins/mactime/mactime_test.c
parent4f05a8e408cba09057841d97cd5e7da3058836d1 (diff)
tests: make pg_start() wait until pg completes
A sizable number of tests call pg_start() to get the packets flowing and then immediately expect to have the entirety of the packets gone through. This works on powerful and unstressed hardware, but fails in beautifully random ways under load. This also necessitates the complicated logic of remembering the "zombie captures", then sleeping for some time before cleaning them up.... The solution is simple: in pg_start(), start the generators, wait till they all finish, clean up, done. Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com> Change-Id: I930e51b7aae39c9841d22dd905a4d13a465a672b Type: test
Diffstat (limited to 'src/plugins/mactime/mactime_test.c')
0 files changed, 0 insertions, 0 deletions