Fix TestUbsanBasic
authorFrederic Riss <friss@apple.com>
Fri, 23 Feb 2018 05:03:10 +0000 (05:03 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 23 Feb 2018 05:03:10 +0000 (05:03 +0000)
Summary:
Potentially due to the recent testuite refactorings, this test now reports
a full absolute path but expect just the filename. For some reason this
test is skipped on GreenDragon so we've never seen the issue.

Reviewers: vsk

Subscribers: kubamracek, lldb-commits

Differential Revision: https://reviews.llvm.org/D43577

llvm-svn: 325859

lldb/packages/Python/lldbsuite/test/functionalities/ubsan/basic/TestUbsanBasic.py

index cec9fdd..5dfa08e 100644 (file)
@@ -84,7 +84,7 @@ class UbsanBasicTestCase(TestBase):
 
         self.assertEqual(data["instrumentation_class"], "UndefinedBehaviorSanitizer")
         self.assertEqual(data["description"], "misaligned-pointer-use")
-        self.assertEqual(data["filename"], "main.c")
+        self.assertEqual(os.path.basename(data["filename"]), "main.c")
         self.assertEqual(data["line"], self.line_align)
 
         self.runCmd("continue")