Skip to content

Commit

Permalink
Adding nested callback test
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan9001 committed Jul 25, 2024
1 parent 8d6d347 commit 23244a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/testers/unittests/test_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,15 @@ def get_concrete_memory_value_hook(ctx, mem):

test_call(False)
test_call(True)

def test_nested_cb_issue(self):
def setup_callback(ctx):
def getMem(triton_ctx, memacc):
pass
ctx.addCallback(CALLBACK.GET_CONCRETE_MEMORY_VALUE, getMem)

ctx = TritonContext(ARCH.X86_64)

setup_callback(ctx)

ctx.getConcreteMemoryAreaValue(0x1000, 0x1)

0 comments on commit 23244a0

Please sign in to comment.