Skip to content

Commit

Permalink
Merge pull request openucx#7 from shizhibao/huawei
Browse files Browse the repository at this point in the history
UT: fix some ucg ut failed testcases
  • Loading branch information
nsosnsos authored Nov 20, 2020
2 parents 57c6432 + 6503c40 commit 4d4bfe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/gtest/ucg/test_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,6 @@ TEST_F(ucg_op_test, test_op_trigger) {
ret = ucg_builtin_op_trigger(op, 0, &request);
ASSERT_EQ(UCS_INPROGRESS, ret);
ucg_builtin_component.destroy(group);
m_ucg_worker = NULL;
m_ucg_context = NULL;
}
4 changes: 4 additions & 0 deletions test/gtest/ucg/test_step.cc
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ TEST_F(ucg_step_test, test_step_execute_bcopy) {
delete iface;
step->uct_iface = NULL;
ASSERT_EQ(UCS_OK, ret);
m_ucg_worker = NULL;
m_ucg_context = NULL;
}

TEST_F(ucg_step_test, test_step_execute_zcopy) {
Expand Down Expand Up @@ -393,4 +395,6 @@ TEST_F(ucg_step_test, test_step_execute_zcopy) {
step->uct_iface = NULL;
ASSERT_EQ(UCS_OK, ret);
ASSERT_EQ((unsigned)0, step->zcopy.num_store);
m_ucg_worker = NULL;
m_ucg_context = NULL;
}

0 comments on commit 4d4bfe2

Please sign in to comment.