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

Johnny Chen johnny.chen at apple.com
Thu Feb 3 16:50:49 PST 2011


Author: johnny
Date: Thu Feb  3 18:50:49 2011
New Revision: 124841

URL: http://llvm.org/viewvc/llvm-project?rev=124841&view=rev
Log:
Add test_apropos_should_also_search_settings_description() to make sure that:

    apropos 'environment variable'

searches all settings description and returns a topic related to:

    target.process.env-vars

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

Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=124841&r1=124840&r2=124841&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Thu Feb  3 18:50:49 2011
@@ -19,6 +19,14 @@
         system(["/bin/sh", "-c", "rm -f stderr.txt"])
         system(["/bin/sh", "-c", "rm -f stdout.txt"])
 
+    def test_apropos_should_also_search_settings_description(self):
+        """Test that 'apropos' command should also search descriptions for the settings variables."""
+
+        self.expect("apropos 'environment variable'",
+            substrs = ["target.process.env-vars",
+                       "environment variables",
+                       "executable's environment"])
+
     def test_set_prompt(self):
         """Test that 'set prompt' actually changes the prompt."""
 





More information about the lldb-commits mailing list