| 83 | } |
| 84 | |
| 85 | static int |
| 86 | test_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 | |
| 105 | static int |
| 106 | test_memzone_reserving_zone_size_bigger_than_the_maximum(void) |
no test coverage detected