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:
@@ -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,13 +17,18 @@ BTestCase::tearDown() {
|
|||||||
|
|
||||||
void
|
void
|
||||||
BTestCase::NextSubTest() {
|
BTestCase::NextSubTest() {
|
||||||
printf("[%ld]", fSubTestNum++);
|
BTestShell *shell = BTestShell::Shell();
|
||||||
fflush(stdout);
|
if (shell && shell->BeVerbose()) {
|
||||||
|
printf("[%ld]", fSubTestNum++);
|
||||||
|
fflush(stdout);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
BTestCase::NextSubTestBlock() {
|
BTestCase::NextSubTestBlock() {
|
||||||
printf("\n");
|
BTestShell *shell = BTestShell::Shell();
|
||||||
|
if (shell && shell->BeVerbose())
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! To return to the last saved working directory, call RestoreCWD(). */
|
/*! To return to the last saved working directory, call RestoreCWD(). */
|
||||||
|
|||||||
Reference in New Issue
Block a user