Package: cppunit Severity: normal Tags: patch TextTestProgressListener doesn't flush output, so progress messages appear after all tests has been completed.
-- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-2-686 Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) -- Dmitry
diff -ru cppunit-1.12.0-2/src/cppunit/TextTestProgressListener.cpp
cppunit-1.12.0/src/cppunit/TextTestProgressListener.cpp
--- cppunit-1.12.0-2/src/cppunit/TextTestProgressListener.cpp 2006-11-29
12:24:08.000000000 +0300
+++ cppunit-1.12.0/src/cppunit/TextTestProgressListener.cpp 2006-11-29
12:26:15.000000000 +0300
@@ -20,6 +20,7 @@
TextTestProgressListener::startTest( Test *test )
{
stdCOut() << ".";
+ stdCOut().flush();
}
@@ -27,6 +28,7 @@
TextTestProgressListener::addFailure( const TestFailure &failure )
{
stdCOut() << ( failure.isError() ? "E" : "F" );
+ stdCOut().flush();
}
signature.asc
Description: Digital signature

