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

Function test_memzone_invalid_flags

dpdk/app/test/test_memzone.c:85–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static int
86test_memzone_invalid_flags(void)
87{
88 const struct rte_memzone *mz;
89
90 mz = rte_memzone_lookup(TEST_MEMZONE_NAME("invalid_flags"));
91 if (mz != NULL) {
92 printf("Zone with invalid flags has been reserved\n");
93 return -1;
94 }
95
96 mz = rte_memzone_reserve(TEST_MEMZONE_NAME("invalid_flags"),
97 100, SOCKET_ID_ANY, RTE_MEMZONE_IOVA_CONTIG << 1);
98 if (mz != NULL) {
99 printf("Zone with invalid flags has been reserved\n");
100 return -1;
101 }
102 return 0;
103}
104
105static int
106test_memzone_reserving_zone_size_bigger_than_the_maximum(void)

Callers 1

test_memzoneFunction · 0.85

Calls 3

rte_memzone_lookupFunction · 0.85
rte_memzone_reserveFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected