[Lldb-commits] [lldb] r259378 - Fix misnamed variable in TestProcessAPI.py

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 1 10:12:55 PST 2016


Author: zturner
Date: Mon Feb  1 12:12:54 2016
New Revision: 259378

URL: http://llvm.org/viewvc/llvm-project?rev=259378&view=rev
Log:
Fix misnamed variable in TestProcessAPI.py

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py?rev=259378&r1=259377&r2=259378&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py Mon Feb  1 12:12:54 2016
@@ -231,7 +231,7 @@ class ProcessAPITestCase(TestBase):
 
         # The bytearray_to_int utility function expects a little endian bytearray.
         if byteOrder == lldb.eByteOrderBig:
-            new_bytes.reverse()
+            content.reverse()
 
         new_value = bytearray_to_int(content, byteSize)
         if new_value != 256:
@@ -239,7 +239,7 @@ class ProcessAPITestCase(TestBase):
 
         # Dump the memory content....
         if self.TraceOn():
-            for i in new_bytes:
+            for i in content:
                 print("byte:", i)
 
     @add_test_categories(['pyapi'])




More information about the lldb-commits mailing list