]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_graph.c
net/sfc: allow to control the represented entity MAC address
[dpdk.git] / app / test / test_graph.c
index 35e1a95b894820791467f73d129529d96ec01f77..1a2d1e6fabc7e8ad4c1a32dd22b16516bb2b4175 100644 (file)
@@ -550,6 +550,12 @@ test_node_clone(void)
        node_id = rte_node_from_name("test_node00");
        tm->test_node[0].idx = node_id;
 
+       dummy_id = rte_node_clone(node_id, "test_node00");
+       if (rte_node_is_invalid(dummy_id)) {
+               printf("Got invalid id when clone, Expecting fail\n");
+               return -1;
+       }
+
        /* Clone with same name, should fail */
        dummy_id = rte_node_clone(node_id, "test_node00");
        if (!rte_node_is_invalid(dummy_id)) {