diff --git a/headers/tools/cppunit/ThreadedTestCaller.h b/headers/tools/cppunit/ThreadedTestCaller.h index 7d459ef1d6..30efa25047 100644 --- a/headers/tools/cppunit/ThreadedTestCaller.h +++ b/headers/tools/cppunit/ThreadedTestCaller.h @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -152,14 +153,18 @@ BThreadedTestCaller::run(CppUnit::TestResult *resu // Try to acquire the semaphore err = acquire_sem_etc(fThreadSem, fThreads.size(), B_RELATIVE_TIMEOUT, 500000); + BTestShell *shell = BTestShell::Shell(); + // Empty the UpdateList std::vector &list = fObject->AcquireUpdateList(); for (std::vector::iterator i = list.begin(); i != list.end(); i++) { - printf("%s", (*i).c_str()); - fflush(stdout); + if (shell && shell->BeVerbose()) { + printf("%s", (*i).c_str()); + fflush(stdout); + } } list.clear(); fObject->ReleaseUpdateList();