| 2224 | } |
| 2225 | |
| 2226 | static inline int |
| 2227 | check_str_eq (const struct message *m, |
| 2228 | const char *prop, |
| 2229 | const char *expected, |
| 2230 | const char *found) { |
| 2231 | if ((expected == NULL) != (found == NULL)) { |
| 2232 | printf("\n*** Error: %s in '%s' ***\n\n", prop, m->name); |
| 2233 | printf("expected %s\n", (expected == NULL) ? "NULL" : expected); |
| 2234 | printf(" found %s\n", (found == NULL) ? "NULL" : found); |
| 2235 | return 0; |
| 2236 | } |
| 2237 | if (expected != NULL && 0 != strcmp(expected, found)) { |
| 2238 | printf("\n*** Error: %s in '%s' ***\n\n", prop, m->name); |
| 2239 | printf("expected '%s'\n", expected); |
| 2240 | printf(" found '%s'\n", found); |
| 2241 | return 0; |
| 2242 | } |
| 2243 | return 1; |
| 2244 | } |
| 2245 | |
| 2246 | static inline int |
| 2247 | check_num_eq (const struct message *m, |
no outgoing calls
no test coverage detected