| 862 | } |
| 863 | |
| 864 | static int |
| 865 | test_zero_aligned_alloc(void) |
| 866 | { |
| 867 | char *p1 = rte_malloc(NULL,1024, 0); |
| 868 | if (!p1) |
| 869 | goto err_return; |
| 870 | if (!rte_is_aligned(p1, RTE_CACHE_LINE_SIZE)) |
| 871 | goto err_return; |
| 872 | rte_free(p1); |
| 873 | return 0; |
| 874 | |
| 875 | err_return: |
| 876 | /*clean up */ |
| 877 | rte_free(p1); |
| 878 | return -1; |
| 879 | } |
| 880 | |
| 881 | static int |
| 882 | test_malloc_bad_params(void) |
no test coverage detected