Spdk/test/lib
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
..
bdev bdev: remove bdev_opened_for_write restriction 2017-09-20 14:43:32 -04:00
blobfs blobfs: Make the behaviour of "delete file" as unlink. 2017-09-15 17:13:14 -04:00
env env: Remove old translation reference counting 2017-09-01 15:25:24 -04:00
event test: move subsystem_ut to unit test directory 2017-09-12 21:00:07 -04:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
json test: move JSON library unit tests to test/unit 2017-06-20 13:46:07 -04:00
nvme test/overhead: print error and exit if no device found 2017-08-16 16:13:29 -04:00
Makefile test: move iSCSI unit tests to test/unit 2017-06-28 13:10:27 -04:00
test_env.c test: flesh out test_env implementation for mempools 2017-09-20 19:27:06 -04:00
ut_multithread.c test: add framework for simulating multithreading in unit tests 2017-09-20 19:27:06 -04:00