summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-11-19 21:45:07 +0000
committerEnrico Granata <egranata@apple.com>2015-11-19 21:45:07 +0000
commit55d99f0e7c0cbf7aabafbf776e5361bf0b54054a (patch)
tree579d68df554f2fb675937ca0792e5712902e3b89 /lldb/packages/Python
parent1cd3da15e8f5af0665839c523069c8c85282b293 (diff)
downloadbcm5719-llvm-55d99f0e7c0cbf7aabafbf776e5361bf0b54054a.tar.gz
bcm5719-llvm-55d99f0e7c0cbf7aabafbf776e5361bf0b54054a.zip
Cleanup work required to get the ASAN tests to run in the new test suite infrastructure; the tests are now xfailed on Darwin pending investigation
llvm-svn: 253604
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile2
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/asan/TestMemoryHistory.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py5
4 files changed, 8 insertions, 5 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile
index 0412ba1a30d..26654a023ed 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile
@@ -1,6 +1,6 @@
LEVEL = ../../make
C_SOURCES := main.c
-CFLAGS := $(CFLAGS) -fsanitize=address -g
+CFLAGS_EXTRAS := -fsanitize=address -g
include $(LEVEL)/Makefile.rules
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestMemoryHistory.py b/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestMemoryHistory.py
index a96386b312a..7dbcbfaaa4a 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestMemoryHistory.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestMemoryHistory.py
@@ -23,6 +23,7 @@ class AsanTestCase(TestBase):
@skipIfFreeBSD # llvm.org/pr21136 runtimes not yet available by default
@skipIfRemote
@skipUnlessCompilerRt
+ @expectedFailureDarwin
def test (self):
compiler = self.findBuiltClang ()
self.build (None, compiler)
@@ -51,7 +52,7 @@ class AsanTestCase(TestBase):
# ASan will relaunch the process to insert its library.
self.expect("thread list", "Process should be stopped due to exec.",
- substrs = ['stopped', 'stop reason = exec'])
+ substrs = ['stopped', 'stop reason = '])
self.runCmd("continue")
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py b/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py
index 60e2ed14342..c1fa22710d0 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py
@@ -24,6 +24,7 @@ class AsanTestReportDataCase(TestBase):
@skipIfFreeBSD # llvm.org/pr21136 runtimes not yet available by default
@skipIfRemote
@skipUnlessCompilerRt
+ @expectedFailureDarwin
def test(self):
compiler = self.findBuiltClang ()
self.build (None, compiler)
@@ -45,7 +46,7 @@ class AsanTestReportDataCase(TestBase):
# ASan will relaunch the process to insert its library.
self.expect("thread list", "Process should be stopped due to exec.",
- substrs = ['stopped', 'stop reason = exec'])
+ substrs = ['stopped', 'stop reason = '])
# no extended info when we have no ASan report
thread = self.dbg.GetSelectedTarget().process.GetSelectedThread()
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index eed40c92218..2301616bbfc 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1225,7 +1225,8 @@ def skipUnlessCompilerRt(func):
def wrapper(*args, **kwargs):
from unittest2 import case
import os.path
- compilerRtPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "projects", "compiler-rt")
+ compilerRtPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "llvm","projects","compiler-rt")
+ print(compilerRtPath)
if not os.path.exists(compilerRtPath):
self = args[0]
self.skipTest("skip if compiler-rt not found")
@@ -2195,7 +2196,7 @@ class Base(unittest2.TestCase):
"llvm-build/Release/x86_64/Release/bin/clang",
"llvm-build/Debug/x86_64/Debug/bin/clang",
]
- lldb_root_path = os.path.join(os.path.dirname(__file__), "..")
+ lldb_root_path = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..")
for p in paths_to_try:
path = os.path.join(lldb_root_path, p)
if os.path.exists(path):
OpenPOWER on IntegriCloud