[Lldb-commits] [lldb] r116847 - in /lldb/trunk/test: lldbtest.py settings/TestSettings.py

Johnny Chen johnny.chen at apple.com
Tue Oct 19 12:11:38 PDT 2010


Author: johnny
Date: Tue Oct 19 14:11:38 2010
New Revision: 116847

URL: http://llvm.org/viewvc/llvm-project?rev=116847&view=rev
Log:
Add a little helper function SETTING_MSG(setting) to be used from TestSettings.test_set_output_path().

Modified:
    lldb/trunk/test/lldbtest.py
    lldb/trunk/test/settings/TestSettings.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=116847&r1=116846&r2=116847&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Oct 19 14:11:38 2010
@@ -180,6 +180,12 @@
         return "'%s' compares successfully" % str
 
 #
+# And a generic "Value of setting '%s' is correct" message generator.
+#
+def SETTING_MSG(setting):
+    return "Value of setting '%s' is correct" % setting
+
+#
 # Returns an env variable array from the os.environ map object.
 #
 def EnvArray():

Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=116847&r1=116846&r2=116847&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Tue Oct 19 14:11:38 2010
@@ -115,6 +115,7 @@
         # Set the output-path and verify it is set.
         self.runCmd("settings set target.process.output-path 'stdout.txt'")
         self.expect("settings show target.process.output-path",
+                    SETTING_MSG("target.process.output-path"),
             startstr = "target.process.output-path (string) = 'stdout.txt'")
 
         self.runCmd("run", RUN_SUCCEEDED)





More information about the lldb-commits mailing list