[Lldb-commits] [lldb] r137738 - /lldb/trunk/test/python_api/value/change_values/TestValueAPI.py

Jim Ingham jingham at apple.com
Tue Aug 16 12:03:09 PDT 2011


Author: jingham
Date: Tue Aug 16 14:03:09 2011
New Revision: 137738

URL: http://llvm.org/viewvc/llvm-project?rev=137738&view=rev
Log:
Re-enable the test for ValueAsUnsigned on a register Value.

Modified:
    lldb/trunk/test/python_api/value/change_values/TestValueAPI.py

Modified: lldb/trunk/test/python_api/value/change_values/TestValueAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/value/change_values/TestValueAPI.py?rev=137738&r1=137737&r2=137738&view=diff
==============================================================================
--- lldb/trunk/test/python_api/value/change_values/TestValueAPI.py (original)
+++ lldb/trunk/test/python_api/value/change_values/TestValueAPI.py Tue Aug 16 14:03:09 2011
@@ -117,7 +117,6 @@
         thread.StepOver()
         expected_value = "Val - 12345 Mine - 55, 98765, 55555555. Ptr - 66, 98765, 66666666"
         stdout = process.GetSTDOUT(1000)
-        print stdout
         self.assertTrue (expected_value in stdout, "STDOUT showed changed values.")
 
         # Finally, change the stack pointer to 0, and we should not make it to our end breakpoint.
@@ -127,10 +126,9 @@
         self.assertTrue (sp_value.IsValid(), "Got a stack pointer value")
         result = sp_value.SetValueFromCString("1")
         self.assertTrue (result, "Setting sp returned true.")
-        # GetValueAsUnsigned doesn't work for register value objects yet. 
-        # actual_value = sp_value.GetValueAsUnsigned (error, 0)
-        # self.assertTrue (error.Success(), "Got a changed value for sp")
-        # self.assertTrue (actual_value == 1, "Got the right changed value for sp.")
+        actual_value = sp_value.GetValueAsUnsigned (error, 0)
+        self.assertTrue (error.Success(), "Got a changed value for sp")
+        self.assertTrue (actual_value == 1, "Got the right changed value for sp.")
         
         process.Continue()
 





More information about the lldb-commits mailing list