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

Function test_memzone_invalid_alignment

dpdk/app/test/test_memzone.c:65–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static int
66test_memzone_invalid_alignment(void)
67{
68 const struct rte_memzone * mz;
69
70 mz = rte_memzone_lookup(TEST_MEMZONE_NAME("invalid_alignment"));
71 if (mz != NULL) {
72 printf("Zone with invalid alignment has been reserved\n");
73 return -1;
74 }
75
76 mz = rte_memzone_reserve_aligned(TEST_MEMZONE_NAME("invalid_alignment"),
77 100, SOCKET_ID_ANY, 0, 100);
78 if (mz != NULL) {
79 printf("Zone with invalid alignment has been reserved\n");
80 return -1;
81 }
82 return 0;
83}
84
85static int
86test_memzone_invalid_flags(void)

Callers 1

test_memzoneFunction · 0.85

Calls 3

rte_memzone_lookupFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected