This revision was automatically updated to reflect the committed changes.
Closed by commit rL243622: [LLDB][MIPS] Added expected failure for "test 
disassembler settings" (authored by mohit.bhakkad).

Changed prior to commit:
  http://reviews.llvm.org/D11562?vs=30900&id=30989#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11562

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

Index: lldb/trunk/test/lldbtest.py
===================================================================
--- lldb/trunk/test/lldbtest.py
+++ lldb/trunk/test/lldbtest.py
@@ -664,6 +664,11 @@
         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)
 
Index: lldb/trunk/test/settings/TestSettings.py
===================================================================
--- lldb/trunk/test/settings/TestSettings.py
+++ lldb/trunk/test/settings/TestSettings.py
@@ -165,8 +165,7 @@
         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: lldb/trunk/test/lldbtest.py
===================================================================
--- lldb/trunk/test/lldbtest.py
+++ lldb/trunk/test/lldbtest.py
@@ -664,6 +664,11 @@
         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)
 
Index: lldb/trunk/test/settings/TestSettings.py
===================================================================
--- lldb/trunk/test/settings/TestSettings.py
+++ lldb/trunk/test/settings/TestSettings.py
@@ -165,8 +165,7 @@
         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()
_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to