]> granicus.if.org Git - check/commitdiff
* Fixed printing of newlines in output.
authorcpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 13 Oct 2006 04:10:50 +0000 (04:10 +0000)
committercpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 13 Oct 2006 04:10:50 +0000 (04:10 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@339 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_log.c

index 69b19cc4169144f50f27c197d6664d25204f411a..edb5cb0165e5b58b3078b3626c508d4e401e7256 100644 (file)
@@ -148,12 +148,15 @@ void stdout_lfun (SRunner *sr, FILE *file, enum print_output printmode,
   case CLSTART_S:
     s = obj;
     if (printmode > CK_SILENT) {
-      fprintf(file, " %s", s->name);
+      fprintf(file, " %s\n", s->name);
     }
     break;
   case CLEND_SR:
     if (printmode > CK_SILENT) {
-      fprintf (file, "\n");
+      /* we don't want a newline before printing here, newlines should
+        come after printing a string, not before.  it's better to add
+        the newline above in CLSTART_S.
+      */
       srunner_fprint (file, sr, printmode);
     }
     break;