summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-02-27 23:44:26 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-02-27 23:44:26 +0000
commit1387839a9f7305d8ed1acf999837183849e8740f (patch)
treea9ef0d1630780aed978e28d56b0d88062c0236aa
parent43ffba26761164bcb54ad2f30d61fd845e1b98a6 (diff)
downloadbcm5719-llvm-1387839a9f7305d8ed1acf999837183849e8740f.tar.gz
bcm5719-llvm-1387839a9f7305d8ed1acf999837183849e8740f.zip
Add more test scenarios for 'memory read': one for a successful command execution
and one for another error message. llvm-svn: 151593
-rw-r--r--lldb/test/functionalities/memory/read/TestMemoryRead.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/functionalities/memory/read/TestMemoryRead.py b/lldb/test/functionalities/memory/read/TestMemoryRead.py
index 8ab7f71e3e0..cd7a496cf15 100644
--- a/lldb/test/functionalities/memory/read/TestMemoryRead.py
+++ b/lldb/test/functionalities/memory/read/TestMemoryRead.py
@@ -90,6 +90,14 @@ class MemoryReadTestCase(TestBase):
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
OpenPOWER on IntegriCloud