mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 17:58:22 +00:00
Merge pull request #162 from SeanHeelan/master
Regression test for issue #161
This commit is contained in:
commit
e1e0946f65
1 changed files with 13 additions and 0 deletions
13
tests/regress/ensure_typedef_consts_generated.py
Normal file
13
tests/regress/ensure_typedef_consts_generated.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
"""See https://github.com/unicorn-engine/unicorn/issues/161
|
||||
|
||||
Ensure that constants which are specified via a typedef, rather than an enum,
|
||||
are included in the bindings by the script for autogenerating mappings for
|
||||
constants.
|
||||
"""
|
||||
|
||||
import unicorn
|
||||
|
||||
try:
|
||||
unicorn.UC_HOOK_MEM_UNMAPPED
|
||||
except AttributeError:
|
||||
assert(False and "Definition for UC_HOOK_MEM_UNMAPPED not generated")
|
Loading…
Reference in a new issue