[Lldb-commits] [lldb] r121813 - /lldb/trunk/test/settings/TestSettings.py

Johnny Chen johnny.chen at apple.com
Tue Dec 14 15:47:55 PST 2010

Author: johnny
Date: Tue Dec 14 17:47:55 2010
New Revision: 121813

URL: http://llvm.org/viewvc/llvm-project?rev=121813&view=rev
Rearrange some statements so that the adding of teardown hook follows immediately
after the statement it wants to revert the effect of.


Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=121813&r1=121812&r2=121813&view=diff
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Tue Dec 14 17:47:55 2010
@@ -89,11 +89,11 @@
         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
         # Set the run-args and the env-vars.
-        self.runCmd('settings set target.process.run-args A B C')
-        self.runCmd('settings set target.process.env-vars ["MY_ENV_VAR"]=YES')
         # And add hooks to restore the settings during tearDown().
+        self.runCmd('settings set target.process.run-args A B C')
             lambda: self.runCmd("settings set -r target.process.run-args"))
+        self.runCmd('settings set target.process.env-vars ["MY_ENV_VAR"]=YES')
             lambda: self.runCmd("settings set -r target.process.env-vars"))

More information about the lldb-commits mailing list