Fix new noreturn test on !darwin platforms
authorEd Maste <emaste@freebsd.org>
Mon, 10 Nov 2014 17:22:47 +0000 (17:22 +0000)
committerEd Maste <emaste@freebsd.org>
Mon, 10 Nov 2014 17:22:47 +0000 (17:22 +0000)
r221575 introduced a NoreturnUnwind test that did not skip the dsym
test on non-darwin platforms, and had the @dwarf_test case as an exact
copy of the dsym case (including the test name, test_with_dsym).

llvm-svn: 221611

lldb/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py

index 2801279..2204ad9 100644 (file)
@@ -11,6 +11,7 @@ import lldbutil
 class NoreturnUnwind(TestBase):
     mydir = TestBase.compute_mydir(__file__)
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     @dsym_test
     def test_with_dsym (self):
         """Test that we can backtrace correctly with 'noreturn' functions on the stack"""
@@ -19,9 +20,9 @@ class NoreturnUnwind(TestBase):
         self.noreturn_unwind_tests()
 
     @dwarf_test
-    def test_with_dsym (self):
+    def test_with_dwarf (self):
         """Test that we can backtrace correctly with 'noreturn' functions on the stack"""
-        self.buildDsym()
+        self.buildDwarf()
         self.setTearDownCleanup()
         self.noreturn_unwind_tests()