summaryrefslogtreecommitdiffstats
path: root/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-07-10 00:30:22 +0000
committerGreg Clayton <gclayton@apple.com>2015-07-10 00:30:22 +0000
commitfdbff2afed6e7f39183de1f6118de71e36874ae8 (patch)
tree6532cf6b11b28e6af7f9264c4779d064ca67c48c /lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
parent8819a4065fba65a69b793db5228751845717d395 (diff)
downloadbcm5719-llvm-fdbff2afed6e7f39183de1f6118de71e36874ae8.tar.gz
bcm5719-llvm-fdbff2afed6e7f39183de1f6118de71e36874ae8.zip
Don't let a test fail because of a teardown command returning an error. Use a function that doesn't check the return value.
llvm-svn: 241879
Diffstat (limited to 'lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py')
-rw-r--r--lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
index 63e21ffb4f4..0a2c4a1b1d5 100644
--- a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
+++ b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
@@ -21,8 +21,6 @@ class SBDirCheckerCase(TestBase):
self.exe_name = 'a.out'
@skipIfNoSBHeaders
- @skipIfDarwin # test passes but teardown command 'settings remove target.env-vars DYLD_LIBRARY_PATH' fails
- # (expectedFailureDarwin doesn't work for teardown failures)
def test_sb_api_directory(self):
"""Test the SB API directory and make sure there's no unwanted stuff."""
@@ -75,7 +73,7 @@ class SBDirCheckerCase(TestBase):
if self.TraceOn():
print "Set environment to: ", env_cmd
self.runCmd(env_cmd)
- self.addTearDownHook(lambda: self.runCmd("settings remove target.env-vars %s" % self.dylibPath))
+ self.addTearDownHook(lambda: self.dbg.HandleCommand("settings remove target.env-vars %s" % self.dylibPath))
lldbutil.run_break_set_by_file_and_line (self, self.source, self.line_to_break, num_expected_locations = -1)
OpenPOWER on IntegriCloud