diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-05-09 20:51:47 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-05-09 20:51:47 +0000 |
commit | fa92ecc3e875c75ff2fcf926f16a1c6731475683 (patch) | |
tree | da0d739c60c9cb18e3e95b63b9a047cdb1ee1a66 | |
parent | a7203e537df20b554f7aa678c7de546bc23b87d7 (diff) | |
download | bcm5719-llvm-fa92ecc3e875c75ff2fcf926f16a1c6731475683.tar.gz bcm5719-llvm-fa92ecc3e875c75ff2fcf926f16a1c6731475683.zip |
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
-rw-r--r-- | lldb/test/platform/TestPlatformCommand.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/platform/TestPlatformCommand.py b/lldb/test/platform/TestPlatformCommand.py index b8986291211..41be7b8bce2 100644 --- a/lldb/test/platform/TestPlatformCommand.py +++ b/lldb/test/platform/TestPlatformCommand.py @@ -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']) |