[Lldb-commits] [PATCH] D11562: [LLDB][MIPS] Added expected failure for "test disassembler settings"

Nitesh Jain nitesh.jain at imgtec.com
Wed Jul 29 05:45:35 PDT 2015


nitesh.jain updated this revision to Diff 30900.
nitesh.jain added a comment.

Added skipUnlessArch which will be used to run Architecture specific test case.


Repository:
  rL LLVM

http://reviews.llvm.org/D11562

Files:
  test/lldbtest.py
  test/settings/TestSettings.py

Index: test/settings/TestSettings.py
===================================================================
--- test/settings/TestSettings.py
+++ test/settings/TestSettings.py
@@ -164,9 +164,8 @@
         self.runCmd("settings clear auto-confirm")
         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()
Index: test/lldbtest.py
===================================================================
--- test/lldbtest.py
+++ test/lldbtest.py
@@ -663,6 +663,11 @@
     def fn(self):
         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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11562.30900.patch
Type: text/x-patch
Size: 1147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150729/8958858f/attachment.bin>


More information about the lldb-commits mailing list