test/bdevio: assert against get_io_channel failure

Added an additional error check.

Change-Id: Ida90b56593cad2bfc3e3d13b71481787a197e390
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/382929
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-10-18 11:01:37 +02:00 committed by Jim Harris
parent 08fcc22f42
commit 66ed5a2bb6

View File

@ -100,6 +100,7 @@ __get_io_channel(void *arg1, void *arg2)
struct io_target *target = arg1;
target->ch = spdk_bdev_get_io_channel(target->bdev_desc);
assert(target->ch);
wake_ut_thread();
}