[Lldb-commits] [lldb] r131100 - /lldb/trunk/test/platform/TestPlatformCommand.py

Johnny Chen johnny.chen at apple.com
Mon May 9 13:51:47 PDT 2011


Author: johnny
Date: Mon May  9 15:51:47 2011
New Revision: 131100

URL: http://llvm.org/viewvc/llvm-project?rev=131100&view=rev
Log:
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.

Modified:
    lldb/trunk/test/platform/TestPlatformCommand.py

Modified: lldb/trunk/test/platform/TestPlatformCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/platform/TestPlatformCommand.py?rev=131100&r1=131099&r2=131100&view=diff
==============================================================================
--- lldb/trunk/test/platform/TestPlatformCommand.py (original)
+++ lldb/trunk/test/platform/TestPlatformCommand.py Mon May  9 15:51:47 2011
@@ -22,6 +22,11 @@
         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'])





More information about the lldb-commits mailing list