[llvm-commits] [llvm] r153248 - /llvm/trunk/bindings/python/llvm/tests/test_core.py

Anders Waldenborg anders at 0x63.nu
Thu Mar 22 04:23:53 PDT 2012


Author: andersg
Date: Thu Mar 22 06:23:52 2012
New Revision: 153248

URL: http://llvm.org/viewvc/llvm-project?rev=153248&view=rev
Log:
[python] Add negative MemoryBuffer testcase

Modified:
    llvm/trunk/bindings/python/llvm/tests/test_core.py

Modified: llvm/trunk/bindings/python/llvm/tests/test_core.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/python/llvm/tests/test_core.py?rev=153248&r1=153247&r2=153248&view=diff
==============================================================================
--- llvm/trunk/bindings/python/llvm/tests/test_core.py (original)
+++ llvm/trunk/bindings/python/llvm/tests/test_core.py Thu Mar 22 06:23:52 2012
@@ -16,3 +16,8 @@
         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")
+





More information about the llvm-commits mailing list