The setUp/tearDown methods I added mssed up the test function; reorder.
authorJason Molenda <jmolenda@apple.com>
Fri, 13 Sep 2019 00:01:49 +0000 (00:01 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 13 Sep 2019 00:01:49 +0000 (00:01 +0000)
Thanks to Ted Woodward for catching this one.

llvm-svn: 371795

lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py

index 10cbf9f..5aa592e 100644 (file)
@@ -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)