* Various tests that don't test much but improve coverage */
| 1585 | * Various tests that don't test much but improve coverage |
| 1586 | */ |
| 1587 | static int |
| 1588 | test_misc(void) |
| 1589 | { |
| 1590 | struct rte_acl_param param; |
| 1591 | struct rte_acl_ctx *acx; |
| 1592 | |
| 1593 | /* create context */ |
| 1594 | memcpy(¶m, &acl_param, sizeof(param)); |
| 1595 | |
| 1596 | acx = rte_acl_create(¶m); |
| 1597 | if (acx == NULL) { |
| 1598 | printf("Line %i: Error creating ACL context!\n", __LINE__); |
| 1599 | return -1; |
| 1600 | } |
| 1601 | |
| 1602 | /* dump context with rules - useful for coverage */ |
| 1603 | rte_acl_list_dump(); |
| 1604 | |
| 1605 | rte_acl_dump(acx); |
| 1606 | |
| 1607 | rte_acl_free(acx); |
| 1608 | |
| 1609 | return 0; |
| 1610 | } |
| 1611 | |
| 1612 | static uint32_t |
| 1613 | get_u32_range_max(void) |
no test coverage detected