Converted TestDeadStrip.py to Dsym/Dwarf combination.

llvm-svn: 112670
This commit is contained in:
Johnny Chen 2010-08-31 23:12:15 +00:00
parent 030f02021b
commit 11c34a0488
1 changed files with 12 additions and 1 deletions

View File

@ -11,7 +11,18 @@ class TestDeadStrip(TestBase):
mydir = "dead-strip"
def test_dead_strip(self):
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym(self):
"""Test breakpoint works correctly with dead-code stripping."""
self.buildDsym()
self.dead_strip()
def test_with_dwarf(self):
"""Test breakpoint works correctly with dead-code stripping."""
self.buildDwarf()
self.dead_strip()
def dead_strip(self):
"""Test breakpoint works correctly with dead-code stripping."""
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)