[Lldb-commits] [lldb] r371795 - The setUp/tearDown methods I added mssed up the test function; reorder.

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 12 17:01:49 PDT 2019


Author: jmolenda
Date: Thu Sep 12 17:01:49 2019
New Revision: 371795

URL: http://llvm.org/viewvc/llvm-project?rev=371795&view=rev
Log:
The setUp/tearDown methods I added mssed up the test function; reorder.

Thanks to Ted Woodward for catching this one.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py?rev=371795&r1=371794&r2=371795&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py Thu Sep 12 17:01:49 2019
@@ -7,12 +7,6 @@ from gdbclientutils import *
 
 class TestWriteMemory(GDBRemoteTestBase):
 
-    def test(self):
-
-        class MyResponder(MockGDBServerResponder):
-            def setBreakpoint(self, packet):
-                return "OK"
-
     def setUp(self):
         super(TestWriteMemory, self).setUp()
         self._initial_platform = lldb.DBG.GetSelectedPlatform()
@@ -21,6 +15,13 @@ class TestWriteMemory(GDBRemoteTestBase)
         lldb.DBG.SetSelectedPlatform(self._initial_platform)
         super(TestWriteMemory, self).tearDown()
 
+
+    def test(self):
+
+        class MyResponder(MockGDBServerResponder):
+            def setBreakpoint(self, packet):
+                return "OK"
+
         self.server.responder = MyResponder()
         target = self.dbg.CreateTargetWithFileAndTargetTriple('', 'x86_64-pc-linux')
         process = self.connect(target)




More information about the lldb-commits mailing list