| 134 | } |
| 135 | |
| 136 | static int fmap_find_area_test(struct fmap *fmap) |
| 137 | { |
| 138 | status = fail; |
| 139 | char area_name[] = "test_area_1"; |
| 140 | |
| 141 | if (fmap_find_area(NULL, area_name) || |
| 142 | fmap_find_area(fmap, NULL)) { |
| 143 | printf("FAILURE: failed to abort on NULL pointer input\n"); |
| 144 | goto fmap_find_area_test_exit; |
| 145 | } |
| 146 | |
| 147 | if (fmap_find_area(fmap, area_name) == NULL) { |
| 148 | printf("FAILURE: failed to find \"%s\"\n", area_name); |
| 149 | goto fmap_find_area_test_exit; |
| 150 | } |
| 151 | |
| 152 | status = pass; |
| 153 | fmap_find_area_test_exit: |
| 154 | return status; |
| 155 | } |
| 156 | |
| 157 | static int fmap_flags_to_string_test(void) |
| 158 | { |
no test coverage detected