[Lldb-commits] [lldb] r235197 - Fix the MiVarTestCase.test_lldbmi_var_create_register test on 32bit systems

Ilia K ki.stfu at gmail.com
Fri Apr 17 08:45:32 PDT 2015


Author: ki.stfu
Date: Fri Apr 17 10:45:32 2015
New Revision: 235197

URL: http://llvm.org/viewvc/llvm-project?rev=235197&view=rev
Log:
Fix the MiVarTestCase.test_lldbmi_var_create_register test on 32bit systems


Modified:
    lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py

Modified: lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py?rev=235197&r1=235196&r2=235197&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py (original)
+++ lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py Fri Apr 17 10:45:32 2015
@@ -211,8 +211,11 @@ class MiVarTestCase(lldbmi_testcase.MiTe
         register_name = self.child.after.split("\"")[1]
 
         # Create variable for register 0
+        # Note that message is different in Darwin and Linux:
+        # Darwin: "^done,name=\"var_reg\",numchild=\"0\",value=\"0x[0-9a-f]+\",type=\"unsigned long\",thread-id=\"1\",has_more=\"0\"
+        # Linux:  "^done,name=\"var_reg\",numchild=\"0\",value=\"0x[0-9a-f]+\",type=\"unsigned int\",thread-id=\"1\",has_more=\"0\"
         self.runCmd("-var-create var_reg * $%s" % register_name)
-        self.expect("\^done,name=\"var_reg\",numchild=\"0\",value=\"0x[0-9a-f]+\",type=\"unsigned long\",thread-id=\"1\",has_more=\"0\"")
+        self.expect("\^done,name=\"var_reg\",numchild=\"0\",value=\"0x[0-9a-f]+\",type=\"unsigned (long|int)\",thread-id=\"1\",has_more=\"0\"")
 
         # Assign value to variable
         self.runCmd("-var-assign var_reg \"6\"")





More information about the lldb-commits mailing list