Fixed a problem where a dSYM wasn't properly found because it had the wrong name
authorSean Callanan <scallanan@apple.com>
Wed, 30 Mar 2016 20:17:41 +0000 (20:17 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 30 Mar 2016 20:17:41 +0000 (20:17 +0000)
<rdar://problem/25447765>

llvm-svn: 264914

lldb/packages/Python/lldbsuite/test/lang/objc/objc-static-method-stripped/Makefile
lldb/packages/Python/lldbsuite/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py

index 81e7f12..01392a8 100644 (file)
@@ -7,9 +7,10 @@ default:        a.out.stripped
 
 a.out.stripped: a.out.dSYM
        strip -o a.out.stripped a.out
+       ln -sf a.out.dSYM a.out.stripped.dSYM
 
 clean::
        rm -f a.out.stripped
-       rm -rf a.out.stripped.dSYM
+       rm -rf *.dSYM
 
 include $(LEVEL)/Makefile.rules
index 088eb83..7d88292 100644 (file)
@@ -30,7 +30,7 @@ class TestObjCStaticMethodStripped(TestBase):
         if self.getArchitecture() == 'i386':
             self.skipTest("requires modern objc runtime")
         self.build()
-        exe = os.path.join(os.getcwd(), "a.out.stripped")
+        exe = os.path.join(os.getcwd(), "a.out")
 
         target = self.dbg.CreateTarget(exe)
         self.assertTrue(target, VALID_TARGET)