| 1135 | } |
| 1136 | |
| 1137 | static int adr_check_splice(const char *in, const char *name, const char *body, |
| 1138 | const char *expect) { |
| 1139 | char *out = cbm_adr_splice_section(in, name, body); |
| 1140 | ASSERT_NOT_NULL(out); |
| 1141 | if (strcmp(out, expect) != 0) { |
| 1142 | printf(" %sFAIL%s %s: splice(\"%s\")\n in >>>%s<<<\n got >>>%s<<<\n" |
| 1143 | " expect >>>%s<<<\n", |
| 1144 | tf_red(), tf_reset(), __FILE__, name, in, out, expect); |
| 1145 | free(out); |
| 1146 | return 1; |
| 1147 | } |
| 1148 | free(out); |
| 1149 | return 0; |
| 1150 | } |
| 1151 | |
| 1152 | #define CHECK_SPLICE(in, name, body, expect) \ |
| 1153 | do { \ |
nothing calls this directly
no test coverage detected