Commit d476f9b6 authored by Jihun Ha's avatar Jihun Ha Committed by Madan Lanka

Fix defect issues in things manager

Fixed issue CID: 82945, 82946, 82947, 82948, 82949

Change-Id: I7b4e8ac60751a5bb5c62aa1be05452aea16047ee
Signed-off-by: default avatarJihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3745Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarMadan Lanka <lanka.madan@samsung.com>
parent fabc4ca1
......@@ -1301,6 +1301,7 @@ TEST_F(ThingsManagerTest, testExecuteActionSetAllBulbOn)
EXPECT_TRUE(result == OC_STACK_OK);
result = 0;
}
delete allBulbON;
}
//Execute actionset with NULL Resource
......@@ -1378,6 +1379,8 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithDelay)
EXPECT_TRUE(result == OC_STACK_OK);
result = 0;
}
delete allBulbON;
}
//Execute actionset with Delay = 0
......@@ -1416,6 +1419,8 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithDelayEqulasZero)
EXPECT_TRUE(result == OC_STACK_INVALID_PARAM);
result = 0;
}
delete allBulbON;
}
//Execute actionset with invalid Delay
......@@ -1454,6 +1459,8 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithInvalidDelay)
EXPECT_TRUE(result == OC_STACK_INVALID_PARAM);
result = 0;
}
delete allBulbON;
}
//Execute actionset with delay on NULL Resource
......@@ -1489,6 +1496,7 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithDelayWithResourceNull)
EXPECT_TRUE(result == OC_STACK_ERROR);
result = 0;
delete allBulbON;
}
//Cancel ActionSet
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment