[Lldb-commits] [lldb] r233934 - Fix a few more test suite errors where a cleanup lambda was calling self.runCmd() which requires the command returns successfully. Using self.dbg.HandleCommand() doesn't require success.

Greg Clayton gclayton at apple.com
Thu Apr 2 11:42:12 PDT 2015


Author: gclayton
Date: Thu Apr  2 13:42:12 2015
New Revision: 233934

URL: http://llvm.org/viewvc/llvm-project?rev=233934&view=rev
Log:
Fix a few more test suite errors where a cleanup lambda was calling self.runCmd() which requires the command returns successfully. Using self.dbg.HandleCommand() doesn't require success.


Modified:
    lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py

Modified: lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py?rev=233934&r1=233933&r2=233934&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py (original)
+++ lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py Thu Apr  2 13:42:12 2015
@@ -75,7 +75,7 @@ class LoadUnloadTestCase(TestBase):
         self.runCmd("settings show target.env-vars")
 
         remove_dyld_path_cmd = "settings remove target.env-vars " + self.dylibPath
-        self.addTearDownHook(lambda: self.runCmd(remove_dyld_path_cmd))
+        self.addTearDownHook(lambda: self.dbg.HandleCommand(remove_dyld_path_cmd))
 
         self.runCmd("run")
 
@@ -121,7 +121,7 @@ class LoadUnloadTestCase(TestBase):
         self.runCmd("settings show target.env-vars")
 
         remove_dyld_path_cmd = "settings remove target.env-vars " + self.dylibPath
-        self.addTearDownHook(lambda: self.runCmd(remove_dyld_path_cmd))
+        self.addTearDownHook(lambda: self.dbg.HandleCommand(remove_dyld_path_cmd))
 
         lldbutil.run_break_set_by_file_and_line (self, "d.c", self.line_d_function, num_expected_locations=1, loc_exact=True)
 





More information about the lldb-commits mailing list