summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/exec
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-01 18:35:40 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-01 18:35:40 +0000
commit52f12f63f4ecaab157c9a056f6185746d87cd6e3 (patch)
tree87b217fbfa4a27372c511ea4eb8bd3151f41946a /lldb/packages/Python/lldbsuite/test/functionalities/exec
parent172838df6bc9c7754b030776428f875b57d70ed2 (diff)
downloadbcm5719-llvm-52f12f63f4ecaab157c9a056f6185746d87cd6e3.tar.gz
bcm5719-llvm-52f12f63f4ecaab157c9a056f6185746d87cd6e3.zip
Fix `skipIfSanitized` decorator on macOS
For security reasons, DYLD_INSERT_LIBRARIES is not propagated to a child process. This breaks the skipIfSanitized decorator, which checks for the environment variable being set. Instead, always set the ASAN_OPTIONS and make the decorator check for that. Differential revision: https://reviews.llvm.org/D65594 llvm-svn: 367595
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/exec')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py b/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
index dc51a3d4a36..9f75735ac17 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
@@ -21,7 +21,7 @@ class ExecTestCase(TestBase):
@expectedFailureAll(archs=['i386'], bugnumber="rdar://28656532")
@expectedFailureAll(oslist=["ios", "tvos", "watchos", "bridgeos"], bugnumber="rdar://problem/34559552") # this exec test has problems on ios systems
@expectedFailureNetBSD
- @skipIfSanitized # rdar://problem/43756823
+ @skipIfAsan # rdar://problem/43756823
@skipIfWindows
def test_hitting_exec (self):
self.do_test(False)
@@ -29,7 +29,7 @@ class ExecTestCase(TestBase):
@expectedFailureAll(archs=['i386'], bugnumber="rdar://28656532")
@expectedFailureAll(oslist=["ios", "tvos", "watchos", "bridgeos"], bugnumber="rdar://problem/34559552") # this exec test has problems on ios systems
@expectedFailureNetBSD
- @skipIfSanitized # rdar://problem/43756823
+ @skipIfAsan # rdar://problem/43756823
@skipIfWindows
def test_skipping_exec (self):
self.do_test(True)
OpenPOWER on IntegriCloud