diff --git a/lldb/docs/testsuite/a-detailed-walkthrough.txt b/lldb/docs/testsuite/a-detailed-walkthrough.txt index 8d374d5d81ea0..57c9dbce3d0ab 100644 --- a/lldb/docs/testsuite/a-detailed-walkthrough.txt +++ b/lldb/docs/testsuite/a-detailed-walkthrough.txt @@ -110,19 +110,9 @@ executable by lldb: exe = self.getBuildArtifact("a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) -This is where the attribute assignment: - -class SettingsCommandTestCase(TestBase): - - mydir = "settings" - -which happens right after the SettingsCommandTestCase class declaration comes -into place. It specifies the relative directory to the top level 'test' so that -the test harness can change its working directory in order to find the -executable as well as the source code files. The runCmd() method is defined in -the TestBase base class (within test/lldbtest.py) and its purpose is to pass the -specified command to the lldb command interpreter. It's like you're typing the -command within an interactive lldb session. +The runCmd() method is defined in the TestBase base class and its purpose is to +pass the specified command to the lldb command interpreter. It's like you're +typing the command within an interactive lldb session. The CURRENT_EXECUTABLE_SET is an assert message defined in the lldbtest module so that it can be reused from other test modules. diff --git a/lldb/test/API/commands/process/continue_to_bkpt/TestContinueToBkpts.py b/lldb/test/API/commands/process/continue_to_bkpt/TestContinueToBkpts.py index 82f4404241283..c8f6764647a33 100644 --- a/lldb/test/API/commands/process/continue_to_bkpt/TestContinueToBkpts.py +++ b/lldb/test/API/commands/process/continue_to_bkpt/TestContinueToBkpts.py @@ -12,7 +12,6 @@ class TestContinueToBkpts(TestBase): NO_DEBUG_INFO_TESTCASE = True - mydir = TestBase.compute_mydir(__file__) @add_test_categories(['pyapi']) def test_continue_to_breakpoints(self): diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/simulator/TestDataFormatterLibcxxStringSimulator.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/simulator/TestDataFormatterLibcxxStringSimulator.py index e156447121cca..eb6bd3b04e424 100644 --- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/simulator/TestDataFormatterLibcxxStringSimulator.py +++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/simulator/TestDataFormatterLibcxxStringSimulator.py @@ -13,7 +13,6 @@ class LibcxxStringDataFormatterSimulatorTestCase(TestBase): - mydir = TestBase.compute_mydir(__file__) NO_DEBUG_INFO_TESTCASE = True def _run_test(self, defines): diff --git a/lldb/test/API/lang/cpp/step-through-trampoline/TestStepThroughTrampoline.py b/lldb/test/API/lang/cpp/step-through-trampoline/TestStepThroughTrampoline.py index b6384c73306ab..f3b174a45625c 100644 --- a/lldb/test/API/lang/cpp/step-through-trampoline/TestStepThroughTrampoline.py +++ b/lldb/test/API/lang/cpp/step-through-trampoline/TestStepThroughTrampoline.py @@ -3,8 +3,6 @@ import lldbsuite.test.lldbutil as lldbutil class StepThroughTrampoline(TestBase): - mydir = TestBase.compute_mydir(__file__) - def test(self): self.build() (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self, diff --git a/lldb/test/API/tools/lldb-server/TestNonStop.py b/lldb/test/API/tools/lldb-server/TestNonStop.py index ebe66366b1736..83772ada78e30 100644 --- a/lldb/test/API/tools/lldb-server/TestNonStop.py +++ b/lldb/test/API/tools/lldb-server/TestNonStop.py @@ -6,8 +6,6 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase): - mydir = TestBase.compute_mydir(__file__) - @skipIfWindows # no SIGSEGV support @add_test_categories(["llgs"]) def test_run(self): diff --git a/lldb/test/API/tools/lldb-vscode/breakpoint/TestVSCode_logpoints.py b/lldb/test/API/tools/lldb-vscode/breakpoint/TestVSCode_logpoints.py index a68ca040c0cf2..33b63a1861eb4 100644 --- a/lldb/test/API/tools/lldb-vscode/breakpoint/TestVSCode_logpoints.py +++ b/lldb/test/API/tools/lldb-vscode/breakpoint/TestVSCode_logpoints.py @@ -15,8 +15,6 @@ class TestVSCode_logpoints(lldbvscode_testcase.VSCodeTestCaseBase): - mydir = TestBase.compute_mydir(__file__) - def setUp(self): lldbvscode_testcase.VSCodeTestCaseBase.setUp(self)