From f62418fc073c1dfe086624122ec48ecb9cfe07a0 Mon Sep 17 00:00:00 2001 From: Sean Heelan Date: Sat, 3 Oct 2015 12:22:41 +0700 Subject: [PATCH] Regression test for issue #161 --- tests/regress/ensure_typedef_consts_generated.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/regress/ensure_typedef_consts_generated.py diff --git a/tests/regress/ensure_typedef_consts_generated.py b/tests/regress/ensure_typedef_consts_generated.py new file mode 100644 index 00000000..5c5adf46 --- /dev/null +++ b/tests/regress/ensure_typedef_consts_generated.py @@ -0,0 +1,6 @@ +import unicorn + +try: + unicorn.UC_HOOK_MEM_UNMAPPED +except AttributeError: + assert(False and "Definition for UC_HOOK_MEM_UNMAPPED not generated")