summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/python
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2012-03-22 11:23:52 +0000
committerAnders Waldenborg <anders@0x63.nu>2012-03-22 11:23:52 +0000
commit4c89b14cad0b267a0c761ce5987155ddbce1ad51 (patch)
treebc859ca6bb2b1b5ddde20323f86a3da0bbf86a1d /llvm/bindings/python
parenteb38bf549de2862798b6ddee66f69ab8a69c3b41 (diff)
downloadbcm5719-llvm-4c89b14cad0b267a0c761ce5987155ddbce1ad51.tar.gz
bcm5719-llvm-4c89b14cad0b267a0c761ce5987155ddbce1ad51.zip
[python] Add negative MemoryBuffer testcase
llvm-svn: 153248
Diffstat (limited to 'llvm/bindings/python')
-rw-r--r--llvm/bindings/python/llvm/tests/test_core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/bindings/python/llvm/tests/test_core.py b/llvm/bindings/python/llvm/tests/test_core.py
index 8123e15bad7..545abc826ea 100644
--- a/llvm/bindings/python/llvm/tests/test_core.py
+++ b/llvm/bindings/python/llvm/tests/test_core.py
@@ -16,3 +16,8 @@ class TestCore(TestBase):
source = self.get_test_binary()
MemoryBuffer(filename=source)
+
+ def test_memory_buffer_failing(self):
+ with self.assertRaises(Exception):
+ MemoryBuffer(filename="/hopefully/this/path/doesnt/exist")
+
OpenPOWER on IntegriCloud