[Lldb-commits] [lldb] r243622 - [LLDB][MIPS] Added expected failure for "test disassembler settings"

Mohit K. Bhakkad mohit.bhakkad at gmail.com
Wed Jul 29 22:45:56 PDT 2015


Author: mohit.bhakkad
Date: Thu Jul 30 00:45:56 2015
New Revision: 243622

URL: http://llvm.org/viewvc/llvm-project?rev=243622&view=rev
Log:
[LLDB][MIPS] Added expected failure for "test disassembler settings"
Patch by Nitesh Jain

Reviewers: clayborg, ovyalov.
Subscribers: jaydeep, bhushan, mohit.bhakkad, sagar, emaste, lldb-commits.
Differential Revision: http://reviews.llvm.org/D11562

Modified:
    lldb/trunk/test/lldbtest.py
    lldb/trunk/test/settings/TestSettings.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=243622&r1=243621&r2=243622&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Thu Jul 30 00:45:56 2015
@@ -664,6 +664,11 @@ def expectedFailureArch(arch, bugnumber=
         return arch in self.getArchitecture()
     return expectedFailure(fn, bugnumber)
 
+def skipUnlessArch(arch):
+    def fn(self):
+        return not self.getArchitecture() in arch 
+    return expectedFailure(fn, None)
+
 def expectedFailurei386(bugnumber=None):
     return expectedFailureArch('i386', bugnumber)
 

Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=243622&r1=243621&r2=243622&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Thu Jul 30 00:45:56 2015
@@ -165,8 +165,7 @@ class SettingsCommandTestCase(TestBase):
         self.expect("settings show auto-confirm", SETTING_MSG("auto-confirm"),
             startstr = "auto-confirm (boolean) = false")
 
-    @expectedFailureArch("arm")
-    @expectedFailureArch("aarch64")
+    @skipUnlessArch(['x86-64', 'i386'])
     def test_disassembler_settings(self):
         """Test that user options for the disassembler take effect."""
         self.buildDefault()





More information about the lldb-commits mailing list