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
llvm-svn: 124841
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py
index 68d2158..bf1e096 100644
--- a/lldb/test/settings/TestSettings.py
+++ b/lldb/test/settings/TestSettings.py
@@ -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."""