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
This commit is contained in:
Johnny Chen 2011-02-04 00:50:49 +00:00
parent b52193787d
commit 7fa6c95b05
1 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,14 @@ class SettingsCommandTestCase(TestBase):
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."""