10 BTestCase::BTestCase(string name
)
11 : CppUnit::TestCase(name
)
19 BTestCase::tearDown() {
26 BTestCase::NextSubTest() {
27 if (BTestShell::GlobalBeVerbose()) {
28 printf("[%" B_PRId32
"]", fSubTestNum
++);
35 BTestCase::NextSubTestBlock() {
36 if (BTestShell::GlobalBeVerbose())
42 BTestCase::Outputf(const char *str
, ...) {
43 if (BTestShell::GlobalBeVerbose()) {
52 /*! To return to the last saved working directory, call RestoreCWD(). */
55 BTestCase::SaveCWD() {
56 fValidCWD
= getcwd(fCurrentWorkingDir
, B_PATH_NAME_LENGTH
);
59 /* If SaveCWD() has not been called and an alternate
60 directory is specified by alternate, the current working directory is
61 changed to alternate. If alternate is null, the current working directory
66 BTestCase::RestoreCWD(const char *alternate
) {
68 chdir(fCurrentWorkingDir
);
69 else if (alternate
!= NULL
)