diff --git a/tester/tester.c b/tester/tester.c
index a7bcef0446decc556466df0311efc94888a16eb6..a74b0a6759a453ba2ac1c9d069b36d0d83018674 100644
--- a/tester/tester.c
+++ b/tester/tester.c
@@ -552,7 +552,8 @@ int  liblinphone_tester_fprintf(FILE * stream, const char * format, ...) {
 	va_list args;
 	va_start(args, format);
 #ifndef ANDROID
-	result = vprintf(format,args);
+	result = vfprintf(stream,format,args);
+	fflush(stream);
 #else
 	/*used by liblinphone tester to retrieve suite list*/
 	result = 0;