Add a test case test_process_info_with_no_arg(self) to 'class PlatformCommandTestCase'

for http://llvm.org/viewvc/llvm-project?rev=131089&view=rev.

llvm-svn: 131100
This commit is contained in:
Johnny Chen 2011-05-09 20:51:47 +00:00
parent a7203e537d
commit fa92ecc3e8
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@ class PlatformCommandTestCase(TestBase):
self.expect("platform process list",
substrs = ['PID', 'ARCH', 'NAME'])
def test_process_info_with_no_arg(self):
"""This is expected to fail and to return a proper error message."""
self.expect("platform process info", error=True,
substrs = ['one or more process id(s) must be specified'])
def test_status(self):
self.expect("platform status",
substrs = ['Platform', 'Triple', 'OS Version', 'Kernel', 'Hostname'])