MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_reorder_create

Function test_reorder_create

dpdk/app/test/test_reorder.c:35–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static struct reorder_unittest_params *test_params = &default_params;
34
35static int
36test_reorder_create(void)
37{
38 struct rte_reorder_buffer *b = NULL;
39
40 b = rte_reorder_create(NULL, rte_socket_id(), REORDER_BUFFER_SIZE);
41 TEST_ASSERT((b == NULL) && (rte_errno == EINVAL),
42 "No error on create() with NULL name");
43
44 b = rte_reorder_create("PKT", rte_socket_id(), REORDER_BUFFER_SIZE_INVALID);
45 TEST_ASSERT((b == NULL) && (rte_errno == EINVAL),
46 "No error on create() with invalid buffer size param.");
47
48 b = rte_reorder_create("PKT_RO1", rte_socket_id(), REORDER_BUFFER_SIZE);
49 TEST_ASSERT_EQUAL(b, test_params->b,
50 "New reorder instance created with already existing name");
51
52 return 0;
53}
54
55static int
56test_reorder_init(void)

Callers

nothing calls this directly

Calls 2

rte_reorder_createFunction · 0.85
rte_socket_idFunction · 0.85

Tested by

no test coverage detected