[Lldb-commits] [lldb] r151593 - /lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py

Johnny Chen johnny.chen at apple.com
Mon Feb 27 15:44:26 PST 2012


Author: johnny
Date: Mon Feb 27 17:44:26 2012
New Revision: 151593

URL: http://llvm.org/viewvc/llvm-project?rev=151593&view=rev
Log:
Add more test scenarios for 'memory read': one for a successful command execution
and one for another error message.

Modified:
    lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py

Modified: lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py?rev=151593&r1=151592&r2=151593&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py (original)
+++ lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py Mon Feb 27 17:44:26 2012
@@ -90,6 +90,14 @@
         self.expect("memory read --format 'hex float' --size 16 `&argc`",
             substrs = ['unsupported byte size (16) for hex float format'])
 
+        self.expect("memory read --format 'float' --count 1 --size 8 `&my_double`",
+            substrs = ['1234.'])
+
+        # (lldb) memory read --format 'float' --count 1 --size 20 `&my_double`
+        # 0x7fff5fbff598: error: unsupported byte size (20) for float format
+        self.expect("memory read --format 'float' --count 1 --size 20 `&my_double`",
+            substrs = ['unsupported byte size (20) for float format'])
+
 
 if __name__ == '__main__':
     import atexit





More information about the lldb-commits mailing list