Spdk/test/unit/lib/util/io_channel.c
Jim Harris 32a87ed9e3 test: add framework for simulating multithreading in unit tests
Use the mock wrappers to override pthread_self(), enabling the
unit tests to switch emulation between different threads
from the context of a single unit test thread.

Add this into the io_channel unit tests with some very basic
testing of allocating and freeing multiple threads.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I8742f16c39e92e82065dc5b8f2e5b2e79273a4f8

Reviewed-on: https://review.gerrithub.io/377992
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2017-09-20 19:27:06 -04:00
..
.gitignore test: move lib/util unit tests to test/unit 2017-06-20 13:46:07 -04:00
io_channel_ut.c test: add framework for simulating multithreading in unit tests 2017-09-20 19:27:06 -04:00
Makefile test: add framework for simulating multithreading in unit tests 2017-09-20 19:27:06 -04:00