Added code to honor BTestShell::Verbosity() levels when outputting

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@232 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-07-15 06:50:13 +00:00
parent 20a45908ba
commit 6c3b4a051f
+6
View File
@@ -1,4 +1,5 @@
#include <TestCase.h> #include <TestCase.h>
#include <TestShell.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
@@ -16,12 +17,17 @@ BTestCase::tearDown() {
void void
BTestCase::NextSubTest() { BTestCase::NextSubTest() {
BTestShell *shell = BTestShell::Shell();
if (shell && shell->BeVerbose()) {
printf("[%ld]", fSubTestNum++); printf("[%ld]", fSubTestNum++);
fflush(stdout); fflush(stdout);
}
} }
void void
BTestCase::NextSubTestBlock() { BTestCase::NextSubTestBlock() {
BTestShell *shell = BTestShell::Shell();
if (shell && shell->BeVerbose())
printf("\n"); printf("\n");
} }