From 59056299557766bc4fe29c1ba5ddbf5aea55ab04 Mon Sep 17 00:00:00 2001 From: shizhibao Date: Sun, 6 Dec 2020 22:12:03 +0800 Subject: [PATCH] Fix non-contiguous datatype UT --- test/gtest/ucg/test_cb.cc | 2 ++ test/gtest/ucg/test_step.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/gtest/ucg/test_cb.cc b/test/gtest/ucg/test_cb.cc index 863715b75ef..5fc0dd1eb87 100644 --- a/test/gtest/ucg/test_cb.cc +++ b/test/gtest/ucg/test_cb.cc @@ -33,6 +33,8 @@ ucg_builtin_request_t* ucg_cb_test::create_request(ucg_builtin_op_step_t *step) comp_req->status = UCS_OK; req->comp_req = comp_req; ucg_builtin_op_t *op = new ucg_builtin_op_t; + op->send_dt = NULL; + op->recv_dt = NULL; op->final_cb = NULL; req->op = op; diff --git a/test/gtest/ucg/test_step.cc b/test/gtest/ucg/test_step.cc index c43990e1f96..ca23ee060cc 100644 --- a/test/gtest/ucg/test_step.cc +++ b/test/gtest/ucg/test_step.cc @@ -35,6 +35,8 @@ ucg_builtin_comp_slot_t *ucg_step_test::create_slot(ucg_builtin_op_step_t *step) comp_req->status = UCS_OK; req->comp_req = comp_req; ucg_builtin_op_t *op = new ucg_builtin_op_t; + op->send_dt = NULL; + op->recv_dt = NULL; op->final_cb = NULL; req->op = op;