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
+9 -3
View File
@@ -1,4 +1,5 @@
#include <TestCase.h>
#include <TestShell.h>
#include <unistd.h>
#include <stdio.h>
@@ -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(). */