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

Function testsuite_setup

dpdk/app/test/test_dmadev_api.c:33–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31static int failed;
32
33static int
34testsuite_setup(int16_t dev_id)
35{
36 test_dev_id = dev_id;
37 invalid_dev_id = -1;
38
39 src = rte_malloc("dmadev_test_src", TEST_MEMCPY_SIZE, 0);
40 if (src == NULL)
41 return -ENOMEM;
42 dst = rte_malloc("dmadev_test_dst", TEST_MEMCPY_SIZE, 0);
43 if (dst == NULL) {
44 rte_free(src);
45 src = NULL;
46 return -ENOMEM;
47 }
48
49 total = 0;
50 passed = 0;
51 failed = 0;
52
53 /* Set dmadev log level to critical to suppress unnecessary output
54 * during API tests.
55 */
56 rte_log_set_level_pattern("lib.dmadev", RTE_LOG_CRIT);
57
58 return 0;
59}
60
61static void
62testsuite_teardown(void)

Callers 1

test_dma_apiFunction · 0.70

Calls 3

rte_mallocFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected