Skip to content

Commit

Permalink
[lldb] Delete more mydir references (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kastiglione committed Jul 11, 2022
1 parent 6a4bc45 commit 4655400
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 21 deletions.
16 changes: 3 additions & 13 deletions lldb/docs/testsuite/a-detailed-walkthrough.txt
Expand Up @@ -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.
Expand Down
Expand Up @@ -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):
Expand Down
Expand Up @@ -13,7 +13,6 @@

class LibcxxStringDataFormatterSimulatorTestCase(TestBase):

mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True

def _run_test(self, defines):
Expand Down
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions lldb/test/API/tools/lldb-server/TestNonStop.py
Expand Up @@ -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):
Expand Down
Expand Up @@ -15,8 +15,6 @@

class TestVSCode_logpoints(lldbvscode_testcase.VSCodeTestCaseBase):

mydir = TestBase.compute_mydir(__file__)

def setUp(self):
lldbvscode_testcase.VSCodeTestCaseBase.setUp(self)

Expand Down

0 comments on commit 4655400

Please sign in to comment.