Commit 010242593e63a6b6d763de1b446097cccf876ad8

Ran Benita 2012-07-11T16:23:35

test/dump: output commentary to stderr Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/test/dump.c b/test/dump.c
index abb9f0a..eaa7adb 100644
--- a/test/dump.c
+++ b/test/dump.c
@@ -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",
-               strlen(as_string), strlen(expected));
-        printf("result:\n%s\n", as_string);
+        fprintf(stderr, "dumped map differs from expected!\n\n");
+        fprintf(stderr, "length: got %zu, expected %zu\n",
+                strlen(as_string), strlen(expected));
+        fprintf(stderr, "result:\n");
+        printf("%s\n", as_string);
         assert(0);
     }