| 30 | #define FBARRAY_TEST_ELT_SZ (sizeof(int)) |
| 31 | |
| 32 | static int autotest_setup(void) |
| 33 | { |
| 34 | int ret; |
| 35 | |
| 36 | ret = rte_fbarray_init(¶m.arr, FBARRAY_TEST_ARR_NAME, |
| 37 | FBARRAY_TEST_LEN, FBARRAY_TEST_ELT_SZ); |
| 38 | if (ret) { |
| 39 | printf("Failed to initialize test array\n"); |
| 40 | return -1; |
| 41 | } |
| 42 | ret = rte_fbarray_init(&unaligned.arr, FBARRAY_UNALIGNED_TEST_ARR_NAME, |
| 43 | FBARRAY_UNALIGNED_TEST_LEN, FBARRAY_TEST_ELT_SZ); |
| 44 | if (ret) { |
| 45 | printf("Failed to initialize unaligned test array\n"); |
| 46 | rte_fbarray_destroy(¶m.arr); |
| 47 | return -1; |
| 48 | } |
| 49 | return 0; |
| 50 | } |
| 51 | |
| 52 | static void autotest_teardown(void) |
| 53 | { |
nothing calls this directly
no test coverage detected