projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b191fd2
)
src: Fixed stdout and stderr problems.
author
ademin
<devnull@localhost>
Sat, 13 Feb 2010 14:17:56 +0000
(14:17 +0000)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 31 May 2011 17:50:51 +0000
(19:50 +0200)
This fixes cmockery defect #13.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmockery.c
patch
|
blob
|
history
diff --git
a/src/cmockery.c
b/src/cmockery.c
index
df78ea2
..
e658885
100755
(executable)
--- a/
src/cmockery.c
+++ b/
src/cmockery.c
@@
-1533,6
+1533,7
@@
void vprint_message(const char* const format, va_list args) {
char buffer[1024];
vsnprintf(buffer, sizeof(buffer), format, args);
printf(buffer);
+ fflush(stdout);
#ifdef _WIN32
OutputDebugString(buffer);
#endif // _WIN32
@@
-1543,6
+1544,7
@@
void vprint_error(const char* const format, va_list args) {
char buffer[1024];
vsnprintf(buffer, sizeof(buffer), format, args);
fprintf(stderr, buffer);
+ fflush(stderr);
#ifdef _WIN32
OutputDebugString(buffer);
#endif // _WIN32