diff --git a/src/tools/cppunit/TestCase.cpp b/src/tools/cppunit/TestCase.cpp index 278c82edf8..f1cd19449d 100644 --- a/src/tools/cppunit/TestCase.cpp +++ b/src/tools/cppunit/TestCase.cpp @@ -1,4 +1,5 @@ #include +#include #include #include @@ -16,13 +17,18 @@ BTestCase::tearDown() { void BTestCase::NextSubTest() { - printf("[%ld]", fSubTestNum++); - fflush(stdout); + BTestShell *shell = BTestShell::Shell(); + if (shell && shell->BeVerbose()) { + printf("[%ld]", fSubTestNum++); + fflush(stdout); + } } void BTestCase::NextSubTestBlock() { - printf("\n"); + BTestShell *shell = BTestShell::Shell(); + if (shell && shell->BeVerbose()) + printf("\n"); } /*! To return to the last saved working directory, call RestoreCWD(). */