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:
parent
08fcc22f42
commit
66ed5a2bb6
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user