#199 stream buffer not flushed

1.12.0
closed-fixed
5
2009-11-24
2009-08-04
No

Prior to modifying the TestResult destructor, redirecting output sometimes lost the final message(s) due to full vs line oriented stream buffering.
Temporary work around being used is to flush in TestResult's destructor.

TestResult::~TestResult()
{
stdCOut().flush() ;
stdCErr().flush() ;
delete m_protectorChain;
}

==============================================================
clearmake -B ~/.bldhost.blade64-rh5 -k TestQueryGetAllNucs.run | tee log

. . .

2009-07-31 10:12:14,507: 0x2b41861c78e0 INFO DBAccess.MYSQLAdapter - mysql vector has [173] rows.
EOF

==============================================================
clearmake -B ~/.bldhost.blade64-rh5 -k TestQueryGetAllNucs.run | tee log

. . .

2009-07-31 11:07:43,245: 0x2ac80d8a98e0 INFO DBAccess.MYSQLAdapter - mysql vector has [173] rows.
: OK

OK (1 tests)
EOF

Discussion

  • Baptiste Lepilleur

    • milestone: --> 1.12.0
    • assigned_to: nobody --> blep
    • status: open --> closed-fixed
     
  • Baptiste Lepilleur

    Fixed in revision 576.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks