test/dump: output commentary to stderr

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-07-11 16:23:35 +03:00 committed by Daniel Stone
parent e4d4de8c9e
commit 010242593e
1 changed files with 5 additions and 4 deletions

View File

@ -71,10 +71,11 @@ int main(int argc, char *argv[])
assert(as_string);
if (strcmp(as_string, expected) != 0) {
printf("dumped map differs from expected!\n\n");
printf("length: got %zu, expected %zu\n",
fprintf(stderr, "dumped map differs from expected!\n\n");
fprintf(stderr, "length: got %zu, expected %zu\n",
strlen(as_string), strlen(expected));
printf("result:\n%s\n", as_string);
fprintf(stderr, "result:\n");
printf("%s\n", as_string);
assert(0);
}