From f1544e394c9c8b2a42c49084df0868b0cdffb74c Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Mon, 15 Jul 2002 06:53:26 +0000 Subject: [PATCH] NextSubTest() code now honors BTestShell::Verbosity() levels git-svn-id: file:///srv/svn/repos/haiku/trunk/current@238 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/tools/cppunit/ThreadedTestCaller.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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();