Browse Source

Write additional test info to stderr instead of stdout so as not to mar the expected output

tags/json-c-0.11-20130402
Alexander Klauer 12 years ago
parent
commit
57f36ed32a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tests/test_null.c

+ 3
- 3
tests/test_null.c View File

@@ -41,12 +41,12 @@ int main()
int parsed_len = json_object_get_string_len(parsed_str);
const char *parsed_cstr = json_object_get_string(parsed_str);
int ii;
printf("Re-parsed object string len=%d, chars=[", parsed_len);
fprintf( stderr, "Re-parsed object string len=%d, chars=[", parsed_len);
for (ii = 0; ii < parsed_len ; ii++)
{
printf("%s%d", (ii ? ", " : ""), (int)parsed_cstr[ii]);
fprintf( stderr, "%s%d", (ii ? ", " : ""), (int)parsed_cstr[ii]);
}
printf("]\n");
fprintf( stderr, "]\n");
json_object_put(parsed_str);
}
else


Loading…
Cancel
Save