Finished migrating Storage Kit tests to new framework.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@292 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-07-18 01:03:19 +00:00
parent feae69d2c9
commit aad997bd6c
33 changed files with 1034 additions and 584 deletions
+3 -8
View File
@@ -18,7 +18,7 @@ BTestCase::tearDown() {
void
BTestCase::NextSubTest() {
if (BeVerbose()) {
if (BTestShell::GlobalBeVerbose()) {
printf("[%ld]", fSubTestNum++);
fflush(stdout);
}
@@ -26,13 +26,13 @@ BTestCase::NextSubTest() {
void
BTestCase::NextSubTestBlock() {
if (BeVerbose())
if (BTestShell::GlobalBeVerbose())
printf("\n");
}
void
BTestCase::Outputf(const char *str, ...) {
if (BeVerbose()) {
if (BTestShell::GlobalBeVerbose()) {
va_list args;
va_start(args, str);
vprintf(str, args);
@@ -60,8 +60,3 @@ BTestCase::RestoreCWD(const char *alternate) {
chdir(alternate);
}
bool
BTestCase::BeVerbose() {
BTestShell *shell = BTestShell::Shell();
return ((shell && shell->BeVerbose()) || !shell);
}