[Lldb-commits] [lldb] r235172 - Make several test case arm32 compatible

Tamas Berghammer tberghammer at google.com
Fri Apr 17 02:37:06 PDT 2015


Author: tberghammer
Date: Fri Apr 17 04:37:06 2015
New Revision: 235172

URL: http://llvm.org/viewvc/llvm-project?rev=235172&view=rev
Log:
Make several test case arm32 compatible

Modified:
    lldb/trunk/test/expression_command/char/TestExprsChar.py
    lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
    lldb/trunk/test/lldbplatformutil.py
    lldb/trunk/test/settings/TestSettings.py

Modified: lldb/trunk/test/expression_command/char/TestExprsChar.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/char/TestExprsChar.py?rev=235172&r1=235171&r2=235172&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/char/TestExprsChar.py (original)
+++ lldb/trunk/test/expression_command/char/TestExprsChar.py Fri Apr 17 04:37:06 2015
@@ -52,7 +52,8 @@ class ExprCharTestCase(TestBase):
     def test_default_char(self):
         self.do_test()
 
-    
+    @expectedFailureArch("arm", "llvm.org/pr23069")
+    @expectedFailureArch("aarch64", "llvm.org/pr23069")
     def test_signed_char(self):
         self.do_test(dictionary={'CFLAGS_EXTRAS': '-fsigned-char'})
 

Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py?rev=235172&r1=235171&r2=235172&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py Fri Apr 17 04:37:06 2015
@@ -128,8 +128,10 @@ class BreakpointConditionsTestCase(TestB
             self.runCmd("breakpoint modify -c ($eax&&i)")
         elif self.getArchitecture() in ['aarch64']:
             self.runCmd("breakpoint modify -c ($x1&&i)")
+        elif self.getArchitecture() in ['arm']:
+            self.runCmd("breakpoint modify -c ($r0&&i)")
         self.runCmd("run")
-        
+
         self.expect("process status", PROCESS_STOPPED,
             patterns = ['Process .* stopped'])
 

Modified: lldb/trunk/test/lldbplatformutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbplatformutil.py?rev=235172&r1=235171&r2=235172&view=diff
==============================================================================
--- lldb/trunk/test/lldbplatformutil.py (original)
+++ lldb/trunk/test/lldbplatformutil.py Fri Apr 17 04:37:06 2015
@@ -4,6 +4,8 @@ architecture and/or the platform depende
 def check_first_register_readable(test_case):
     if test_case.getArchitecture() in ['x86_64', 'i386']:
         test_case.expect("register read eax", substrs = ['eax = 0x'])
+    elif test_case.getArchitecture() in ['arm']:
+    	test_case.expect("register read r0", substrs = ['r0 = 0x'])
     elif test_case.getArchitecture() in ['aarch64']:
         test_case.expect("register read x0", substrs = ['x0 = 0x'])
     else:

Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=235172&r1=235171&r2=235172&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Fri Apr 17 04:37:06 2015
@@ -165,7 +165,8 @@ class SettingsCommandTestCase(TestBase):
         self.expect("settings show auto-confirm", SETTING_MSG("auto-confirm"),
             startstr = "auto-confirm (boolean) = false")
 
-    @unittest2.skipUnless(os.name != "nt" and os.uname()[4] in ['amd64', 'i386', 'x86_64'], "requires x86 or x86_64")
+    @expectedFailureArch("arm")
+    @expectedFailureArch("aarch64")
     def test_disassembler_settings(self):
         """Test that user options for the disassembler take effect."""
         self.buildDefault()





More information about the lldb-commits mailing list