summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-05-09 20:51:47 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-05-09 20:51:47 +0000
commitfa92ecc3e875c75ff2fcf926f16a1c6731475683 (patch)
treeda0d739c60c9cb18e3e95b63b9a047cdb1ee1a66
parenta7203e537df20b554f7aa678c7de546bc23b87d7 (diff)
downloadbcm5719-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.py5
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'])
OpenPOWER on IntegriCloud