Make it clear what you should modify when you copy any of these sample

test cases.

llvm-svn: 296693
This commit is contained in:
Jim Ingham 2017-03-01 22:23:30 +00:00
parent fe03f24f83
commit f6a4079cf8
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,7 @@
"""
Describe the purpose of the test here.
"""
from __future__ import absolute_import from __future__ import absolute_import
from lldbsuite.test import lldbinline from lldbsuite.test import lldbinline

View File

@ -1,5 +1,5 @@
""" """
Sample test that runs a process to a source regexp breakpoint. Describe the purpose of the test class here.
""" """
from __future__ import print_function from __future__ import print_function
@ -13,14 +13,17 @@ import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbtest import *
class SampleTestTestCase(TestBase): class RenameThisSampleTestTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__) mydir = TestBase.compute_mydir(__file__)
# If your test case doesn't stress debug info, the
# set this to true. That way it won't be run once for
# each debug info format.
NO_DEBUG_INFO_TESTCASE = True NO_DEBUG_INFO_TESTCASE = True
def test_sample(self): def test_sample_rename_this(self):
"""A sample test example that drives a debug session to a breakpoint.""" """There can be many tests in a test case - describe this test here."""
self.build() self.build()
self.sample_test() self.sample_test()
@ -29,7 +32,7 @@ class SampleTestTestCase(TestBase):
TestBase.setUp(self) TestBase.setUp(self)
def sample_test(self): def sample_test(self):
"""A sample test example that drives a debug session to a breakpoint.""" """You might use the test implementation in several ways, say so here."""
exe = os.path.join(os.getcwd(), "a.out") exe = os.path.join(os.getcwd(), "a.out")
# Create a target by the debugger. # Create a target by the debugger.