summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
Diffstat (limited to 'lldb')
-rw-r--r--lldb/test/load_unload/TestLoadUnload.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/load_unload/TestLoadUnload.py b/lldb/test/load_unload/TestLoadUnload.py
index f4db75c961f..def3aef376f 100644
--- a/lldb/test/load_unload/TestLoadUnload.py
+++ b/lldb/test/load_unload/TestLoadUnload.py
@@ -52,6 +52,8 @@ class LoadUnloadTestCase(TestBase):
self.expect("image list",
substrs = [old_dylib])
self.runCmd("target image-search-paths add %s %s" % (os.getcwd(), new_dir))
+ # Add teardown hook to clear image-search-paths after the test.
+ self.addTearDownHook(lambda: self.runCmd("target image-search-paths clear"))
self.expect("image list", "LLDB successfully locates the relocated dynamic library",
substrs = [new_dylib])
OpenPOWER on IntegriCloud