Tests: Don't use diag() to output errors from child processes
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Feb 2015 20:55:07 +0000 (15:55 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Feb 2015 20:55:07 +0000 (15:55 -0500)
diag() appends a newline character to the child processes' output
which causes the test's output to have extra blank lines.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_ctf_writer.c

index 52106f2d6e581044a0dbd230fec9744ffe66044f..e58c6cac075623b3f51046806f547ea9a6ed839d 100644 (file)
@@ -158,12 +158,12 @@ result:
 
                /* Output the metadata and parser output as diagnostic */
                while (getline(&line, &len, metadata_fp) > 0) {
-                       diag("%s", line);
+                       fprintf(stderr, "# %s", line);
                }
 
                rewind(parser_output_fp);
                while (getline(&line, &len, parser_output_fp) > 0) {
-                       diag("%s", line);
+                       fprintf(stderr, "# %s", line);
                }
 
                free(line);
This page took 0.026474 seconds and 4 git commands to generate.