TESTS: Add a stress-test for mt_lists.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 23 Sep 2019 15:42:42 +0000 (17:42 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 23 Sep 2019 16:16:08 +0000 (18:16 +0200)
commitcea46c0f2c8308627029fe2c470947689abef4e6
treeb6d68f2fea4e9a4fce68bde86b09ac2a2fd54393
parentff1e9f39b91ab945e0846bc8493c9e00445b337d
TESTS: Add a stress-test for mt_lists.

Add test-list.c, a stress-test for mt_list, to ensure there's no concurrency
issue.
The number of threads is provided on the command line, and it randomly
add, removes, or parses the list until it made MAX_ACTION actions (currently
5000000).
tests/test-list.c [new file with mode: 0644]