[Lldb-commits] [lldb] r218079 - Add some tests to be skipped when run remotely and also fixed a test to be more reliable when it comes to stopping on a specific line.

Greg Clayton gclayton at apple.com
Thu Sep 18 14:32:06 PDT 2014


Author: gclayton
Date: Thu Sep 18 16:32:05 2014
New Revision: 218079

URL: http://llvm.org/viewvc/llvm-project?rev=218079&view=rev
Log:
Add some tests to be skipped when run remotely and also fixed a test to be more reliable when it comes to stopping on a specific line.


Modified:
    lldb/trunk/test/api/multithreaded/TestMultithreaded.py
    lldb/trunk/test/functionalities/asan/TestAsan.py
    lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py
    lldb/trunk/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py
    lldb/trunk/test/functionalities/data-formatter/rdar-10449092/main.cpp
    lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py

Modified: lldb/trunk/test/api/multithreaded/TestMultithreaded.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multithreaded/TestMultithreaded.py?rev=218079&r1=218078&r2=218079&view=diff
==============================================================================
--- lldb/trunk/test/api/multithreaded/TestMultithreaded.py (original)
+++ lldb/trunk/test/api/multithreaded/TestMultithreaded.py Thu Sep 18 16:32:05 2014
@@ -20,6 +20,7 @@ class SBBreakpointCallbackCase(TestBase)
 
     @unittest2.expectedFailure # llvm.org/pr16000: SBBreakpoint.SetCallback() does nothing
     @skipIfi386
+    @skipIfRemote
     @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
     def test_breakpoint_callback(self):
         """Test the that SBBreakpoint callback is invoked when a breakpoint is hit. """
@@ -27,6 +28,7 @@ class SBBreakpointCallbackCase(TestBase)
                             'test_breakpoint_callback')
 
     @skipIfi386
+    @skipIfRemote
     @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
     def test_sb_api_listener_event_description(self):
         """ Test the description of an SBListener breakpoint event is valid."""
@@ -35,6 +37,7 @@ class SBBreakpointCallbackCase(TestBase)
         pass
 
     @skipIfi386
+    @skipIfRemote
     @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
     def test_sb_api_listener_event_process_state(self):
         """ Test that a registered SBListener receives events when a process
@@ -46,6 +49,7 @@ class SBBreakpointCallbackCase(TestBase)
 
 
     @skipIfi386
+    @skipIfRemote
     @skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
     def test_sb_api_listener_resume(self):
         """ Test that a process can be resumed from a non-main thread. """

Modified: lldb/trunk/test/functionalities/asan/TestAsan.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/asan/TestAsan.py?rev=218079&r1=218078&r2=218079&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/asan/TestAsan.py (original)
+++ lldb/trunk/test/functionalities/asan/TestAsan.py Thu Sep 18 16:32:05 2014
@@ -17,12 +17,14 @@ class AsanTestCase(TestBase):
     # self.useBuiltClang() to use clang from the llvm-build directory instead
 
     @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+    @skipIfRemote
     @dsym_test
     def test_with_dsym (self):
         compiler = self.findBuiltClang ()
         self.buildDsym (None, compiler)
         self.asan_tests ()
 
+    @skipIfRemote
     @dwarf_test
     def test_with_dwarf (self):
         compiler = self.findBuiltClang ()

Modified: lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py?rev=218079&r1=218078&r2=218079&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py (original)
+++ lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py Thu Sep 18 16:32:05 2014
@@ -15,6 +15,7 @@ class AttachResumeTestCase(TestBase):
     mydir = TestBase.compute_mydir(__file__)
 
     @expectedFailureFreeBSD('llvm.org/pr19310')
+    @skipIfRemote
     @dwarf_test
     def test_attach_continue_interrupt_detach(self):
         """Test attach/continue/interrupt/detach"""
@@ -22,6 +23,7 @@ class AttachResumeTestCase(TestBase):
         self.process_attach_continue_interrupt_detach()
 
     @expectedFailureLinux('llvm.org/pr19478')
+    @skipIfRemote
     def process_attach_continue_interrupt_detach(self):
         """Test attach/continue/interrupt/detach"""
 

Modified: lldb/trunk/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py?rev=218079&r1=218078&r2=218079&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py Thu Sep 18 16:32:05 2014
@@ -75,6 +75,7 @@ class Radar10449092DataFormatterTestCase
 
         self.runCmd("type summary add -s \"${var.first%X} and ${var.second%X}\" foo")
         self.runCmd("next")
+        self.runCmd("next")
         self.expect('frame variable mine',
                     substrs = ['(foo) mine = 0xAABBCCDD and 0x1122BB44'])
 
@@ -82,6 +83,7 @@ class Radar10449092DataFormatterTestCase
         self.expect('frame variable mine',
                     substrs = ['(foo) mine = 0xaabbccdd and 0x1122BB44'])
         self.runCmd("next")
+        self.runCmd("next")
         self.runCmd("type summary add -s \"${var.first%x} and ${var.second%x}\" foo")
         self.expect('frame variable mine',
                     substrs = ['(foo) mine = 0xaabbccdd and 0xff00ff00'])

Modified: lldb/trunk/test/functionalities/data-formatter/rdar-10449092/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/rdar-10449092/main.cpp?rev=218079&r1=218078&r2=218079&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/rdar-10449092/main.cpp (original)
+++ lldb/trunk/test/functionalities/data-formatter/rdar-10449092/main.cpp Thu Sep 18 16:32:05 2014
@@ -18,8 +18,11 @@ struct foo
 int main ()
 {
     struct foo mine = {0x001122AA, 0x1122BB44};
+    printf("main.first = 0x%8.8x, main.second = 0x%8.8x\n", mine.first, mine.second);
 	mine.first = 0xAABBCCDD; // Set break point at this line.
+    printf("main.first = 0x%8.8x, main.second = 0x%8.8x\n", mine.first, mine.second);
 	mine.second = 0xFF00FF00;
+    printf("main.first = 0x%8.8x, main.second = 0x%8.8x\n", mine.first, mine.second);
     return 0;
 }
 

Modified: lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py?rev=218079&r1=218078&r2=218079&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py (original)
+++ lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py Thu Sep 18 16:32:05 2014
@@ -11,6 +11,7 @@ class ConvenienceVariablesCase(TestBase)
 
     @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     @dsym_test
+    @skipIfRemote
     def test_with_dsym_and_run_command(self):
         """Test convenience variables lldb.debugger, lldb.target, lldb.process, lldb.thread, and lldb.frame."""
         self.buildDsym()
@@ -18,6 +19,7 @@ class ConvenienceVariablesCase(TestBase)
 
     @dwarf_test
     @skipIfFreeBSD # llvm.org/pr17228
+    @skipIfRemote
     @expectedFailureLinux("llvm.org/pr20276") # intermittent failure on Linux
     def test_with_dwarf_and_run_commands(self):
         """Test convenience variables lldb.debugger, lldb.target, lldb.process, lldb.thread, and lldb.frame."""





More information about the lldb-commits mailing list