summaryrefslogtreecommitdiff
path: root/bindings/python/llvm/tests/test_disassembler.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/llvm/tests/test_disassembler.py')
-rw-r--r--bindings/python/llvm/tests/test_disassembler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/python/llvm/tests/test_disassembler.py b/bindings/python/llvm/tests/test_disassembler.py
index 46d12f7056..e960dc0ba9 100644
--- a/bindings/python/llvm/tests/test_disassembler.py
+++ b/bindings/python/llvm/tests/test_disassembler.py
@@ -16,6 +16,10 @@ class TestDisassembler(TestBase):
self.assertEqual(count, 3)
self.assertEqual(s, '\tjcxz\t-127')
+ def test_nonexistant_triple(self):
+ with self.assertRaisesRegexp(Exception, "Could not obtain disassembler for triple"):
+ Disassembler("nonexistant-triple-raises")
+
def test_get_instructions(self):
sequence = '\x67\xe3\x81\x01\xc7' # jcxz -127; addl %eax, %edi