fix json_rewrite_test CRLF handling

pull/2075/head^2
Jan Tattermusch 10 years ago
parent 12e8a049e4
commit bc745a5f4e
  1. 5
      test/core/json/json_rewrite_test.c

@ -64,6 +64,11 @@ typedef struct json_reader_userdata {
static void json_writer_output_char(void* userdata, char c) {
json_writer_userdata* state = userdata;
int cmp = fgetc(state->cmp);
/* treat CRLF as LF */
if (cmp == '\r' && c == '\n') {
cmp = fgetc(state->cmp);
}
GPR_ASSERT(cmp == c);
}

Loading…
Cancel
Save