+static int
+test_memzone_invalid_flags(void)
+{
+ const struct rte_memzone *mz;
+
+ mz = rte_memzone_lookup(TEST_MEMZONE_NAME("invalid_flags"));
+ if (mz != NULL) {
+ printf("Zone with invalid flags has been reserved\n");
+ return -1;
+ }
+
+ mz = rte_memzone_reserve(TEST_MEMZONE_NAME("invalid_flags"),
+ 100, SOCKET_ID_ANY, RTE_MEMZONE_IOVA_CONTIG << 1);
+ if (mz != NULL) {
+ printf("Zone with invalid flags has been reserved\n");
+ return -1;
+ }
+ return 0;
+}
+