| 63 | } |
| 64 | |
| 65 | static int |
| 66 | test_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 | |
| 85 | static int |
| 86 | test_memzone_invalid_flags(void) |
no test coverage detected