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

Function test_error_distributor_create_name

dpdk/app/test/test_distributor.c:731–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731static
732int test_error_distributor_create_name(void)
733{
734 struct rte_distributor *d = NULL;
735 struct rte_distributor *db = NULL;
736 char *name = NULL;
737
738 d = rte_distributor_create(name, rte_socket_id(),
739 rte_lcore_count() - 1,
740 RTE_DIST_ALG_SINGLE);
741 if (d != NULL || rte_errno != EINVAL) {
742 printf("ERROR: No error on create() with NULL name param\n");
743 return -1;
744 }
745
746 db = rte_distributor_create(name, rte_socket_id(),
747 rte_lcore_count() - 1,
748 RTE_DIST_ALG_BURST);
749 if (db != NULL || rte_errno != EINVAL) {
750 printf("ERROR: No error on create() with NULL param\n");
751 return -1;
752 }
753
754 return 0;
755}
756
757
758static

Callers 1

test_distributorFunction · 0.85

Calls 4

rte_distributor_createFunction · 0.85
rte_socket_idFunction · 0.85
rte_lcore_countFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected