summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>2012-12-19 10:52:50 +0100
committerAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>2012-12-19 10:52:50 +0100
commit57f36ed32a1e679d2ac4c90d12b88e7e2c183b6b (patch)
tree83bdba465ec4c977ff506e70d6f62551eae67c03 /tests
parent827a4a97b9ddf6a04ad5a3d7a3c9350edcd00df0 (diff)
Write additional test info to stderr instead of stdout so as not to mar the expected output
Diffstat (limited to 'tests')
-rw-r--r--tests/test_null.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_null.c b/tests/test_null.c
index 1f07910..d017c7a 100644
--- a/tests/test_null.c
+++ b/tests/test_null.c
@@ -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