Commit a7ed1625381394b1db722db87168b42bd014facc

schu 2011-05-30T21:13:11

test_lib.c: flush stdout after every test-run Make sure the user immediately sees the feedback, '.' or 'F', for a test. If it's only in the buffer, it may gets "lost" in case of error. Signed-off-by: schu <schu-github@schulog.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/test_lib.c b/tests/test_lib.c
index 026428f..aaacdff 100755
--- a/tests/test_lib.c
+++ b/tests/test_lib.c
@@ -189,6 +189,8 @@ int git_testsuite_run(git_testsuite *ts)
 			putchar('F');
 		} else
 			putchar('.');
+
+		fflush(stdout);
 	}
 	printf("\n  ");
 	print_details(ts);