testsuite_setup(void)
{
uint8_t count;
+
+ total = 0;
+ passed = 0;
+ failed = 0;
+ unsupported = 0;
+
count = rte_rawdev_count();
if (!count) {
SKELDEV_TEST_INFO("\tNo existing rawdev; "
dummy_value = &set_value;
*dummy_value = 200;
ret = rte_rawdev_set_attr(test_dev_id, "Test2", (uintptr_t)dummy_value);
+ RTE_TEST_ASSERT(!ret, "Unable to set an attribute (Test2)");
/* Check if attributes have been set */
ret = rte_rawdev_get_attr(test_dev_id, "Test1", &ret_value);
RTE_TEST_ASSERT_EQUAL((unsigned int)ret, count,
"Unable to dequeue buffers");
- if (deq_buffers)
- free(deq_buffers);
+ free(deq_buffers);
return TEST_SUCCESS;
cleanup:
- if (buffers[0].buf_addr)
- free(buffers[0].buf_addr);
+ free(buffers[0].buf_addr);
return TEST_FAILED;
}