NextSubTest() code now honors BTestShell::Verbosity() levels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@238 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
#include <cppunit/TestCase.h>
|
#include <cppunit/TestCase.h>
|
||||||
#include <cppunit/TestResult.h>
|
#include <cppunit/TestResult.h>
|
||||||
#include <cppunit/TestCaller.h>
|
#include <cppunit/TestCaller.h>
|
||||||
|
#include <TestShell.h>
|
||||||
#include <ThreadManager.h>
|
#include <ThreadManager.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
@@ -152,14 +153,18 @@ BThreadedTestCaller<TestClass, ExpectedException>::run(CppUnit::TestResult *resu
|
|||||||
// Try to acquire the semaphore
|
// Try to acquire the semaphore
|
||||||
err = acquire_sem_etc(fThreadSem, fThreads.size(), B_RELATIVE_TIMEOUT, 500000);
|
err = acquire_sem_etc(fThreadSem, fThreads.size(), B_RELATIVE_TIMEOUT, 500000);
|
||||||
|
|
||||||
|
BTestShell *shell = BTestShell::Shell();
|
||||||
|
|
||||||
// Empty the UpdateList
|
// Empty the UpdateList
|
||||||
std::vector<std::string> &list = fObject->AcquireUpdateList();
|
std::vector<std::string> &list = fObject->AcquireUpdateList();
|
||||||
for (std::vector<std::string>::iterator i = list.begin();
|
for (std::vector<std::string>::iterator i = list.begin();
|
||||||
i != list.end();
|
i != list.end();
|
||||||
i++)
|
i++)
|
||||||
{
|
{
|
||||||
printf("%s", (*i).c_str());
|
if (shell && shell->BeVerbose()) {
|
||||||
fflush(stdout);
|
printf("%s", (*i).c_str());
|
||||||
|
fflush(stdout);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
list.clear();
|
list.clear();
|
||||||
fObject->ReleaseUpdateList();
|
fObject->ReleaseUpdateList();
|
||||||
|
|||||||
Reference in New Issue
Block a user