f9958316d8
The SCSI LUN unit test was still stubbing spdk_spdk_get_task(), which doesn't exist anymore. Replace it with a unit test helper function to initialize a task, and remove the unnecessary heap allocation by putting the tasks on the stack. While we're here, clarify which tests should result in the task completion function getting called by removing the (unnecessary) spdk_scsi_task_put() calls. Change-Id: If2b7983a66611131e6a1547dbfed2ad869bdb6e8 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/376266 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>