Skip to content

Commit

Permalink
Make sure stderr is not buffered.
Browse files Browse the repository at this point in the history
git-svn-id: https://google-glog.googlecode.com/svn/trunk@130 eb4d4688-79bd-11dd-afb4-1d65580434c0
  • Loading branch information
shinh committed Jan 31, 2013
1 parent fdc710e commit e6af5ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/logging_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ int main(int argc, char **argv) {
#ifdef HAVE_LIB_GFLAGS
ParseCommandLineFlags(&argc, &argv, true);
#endif
// Make sure stderr is not buffered as stderr seems to be buffered
// on recent windows.
setbuf(stderr, NULL);

// Test some basics before InitGoogleLogging:
CaptureTestStderr();
Expand Down

0 comments on commit e6af5ea

Please sign in to comment.