ut/event: add fatal assert for allocation
Change-Id: I77ed68cb07f66511907a44a24fce6263a192cdd9 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/382723 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
dc72227595
commit
a0287fc0f7
@ -63,6 +63,8 @@ spdk_event_allocate(uint32_t core, spdk_event_fn fn, void *arg1, void *arg2)
|
||||
{
|
||||
struct spdk_event *event = calloc(1, sizeof(*event));
|
||||
|
||||
SPDK_CU_ASSERT_FATAL(event != NULL);
|
||||
|
||||
event->fn = fn;
|
||||
event->arg1 = arg1;
|
||||
event->arg2 = arg2;
|
||||
|
Loading…
Reference in New Issue
Block a user