Code Examples.
More...
Code Examples.
The following code block shall create test group for testing simple container test.
ClRcT clTestContainer(
void)
{
clTestCase((
"Container Create test"), clTestContainerCreate());
clTestCase((
"Container Delete test"), clTestContainerDelete());
}
clTestContainerCreate(void)
{
(
CL_OK == (rc=clTestContainerCreate(CL_CNT_LIST, CL_TST_CNT_CB_STRUCT,
clTest((
"NodeAdd:"), (rc = clTestCntNodeAdd(hCntHead, 2)) ==
CL_OK,
("rc [0x %x]", rc));
clTest((
"NodeAdd:"), (rc = clTestCntNodeAdd(hCntHead, 3)) ==
CL_OK,
("rc [0x %x]", rc));
clTest((
"NodeAdd:"), (rc = clTestCntNodeAdd(hCntHead, 4)) ==
CL_OK,
("rc [0x %x]", rc));
clTest((
"NodeAdd:"), (rc = clTestCntNodeAdd(hCntHead, 5)) ==
CL_OK,
("rc [0x %x]", rc));
("rc [0x %x]", rc));
if( size != 4 )
{
clTestFailure(("Container size get & num of nodes are not proper"));
}
("rc [0x %x]", rc));
}