| 729 | } |
| 730 | |
| 731 | static |
| 732 | int 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 | |
| 758 | static |
no test coverage detected