From 532d8a709b3a277b4added17fc9a2b25068f4998 Mon Sep 17 00:00:00 2001 From: Todd Fiala Date: Wed, 9 Jul 2014 21:02:52 +0000 Subject: [PATCH] Marked TestObjCMethods failing tests XFAIL, fixed cleanup code, removed now-passing expected failure markers. All tests matching '-p TestObjCMethods' now are marked correctly for MacOSX, and some error classes have been removed in cleanup code looking for files that might not exist due to previous failure. See http://llvm.org/bugs/show_bug.cgi?id=20267 llvm-svn: 212650 --- lldb/test/lang/objc/foundation/TestObjCMethods.py | 6 ++++-- lldb/test/lang/objc/foundation/TestObjCMethods2.py | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods.py b/lldb/test/lang/objc/foundation/TestObjCMethods.py index 1eae07c..7d9a635 100644 --- a/lldb/test/lang/objc/foundation/TestObjCMethods.py +++ b/lldb/test/lang/objc/foundation/TestObjCMethods.py @@ -3,7 +3,7 @@ Set breakpoints on objective-c class and instance methods in foundation. Also lookup objective-c data types and evaluate expressions. """ -import os, time +import os, os.path, time import unittest2 import lldb import string @@ -119,6 +119,7 @@ class FoundationTestCase(TestBase): self.expression_lookups_objc() @dwarf_test + @expectedFailureDarwin("llvm.org/pr20267") def test_expression_lookups_objc_dwarf(self): """Test running an expression detect spurious debug info lookups (DWARF).""" self.buildDwarf() @@ -141,7 +142,8 @@ class FoundationTestCase(TestBase): self.runCmd("log disable dwarf lookups") def cleanup(): - os.unlink (logfile) + if os.path.exists (logfile): + os.unlink (logfile) self.addTearDownHook(cleanup) diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods2.py b/lldb/test/lang/objc/foundation/TestObjCMethods2.py index 3385a0f..d113fff 100644 --- a/lldb/test/lang/objc/foundation/TestObjCMethods2.py +++ b/lldb/test/lang/objc/foundation/TestObjCMethods2.py @@ -133,7 +133,6 @@ class FoundationTestCase2(TestBase): self.runCmd("process continue") - @unittest2.expectedFailure(8741897) def NSArray_expr(self): """Test expression commands for NSArray.""" exe = os.path.join(os.getcwd(), "a.out") -- 2.7.4