Merge pull request #2072 from jtattermusch/fix_json_rewrite_test

fix json_rewrite_test CRLF handling
pull/2105/head^2
Nicolas Noble 10 years ago
commit 3acc428ffd
  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