Issue #465 hook_count_cb doesn't stop at n instructions; unit test file

This commit is contained in:
egberts
2015-10-03 22:46:25 -07:00
parent 7cb8e889ad
commit 347d863365
2 changed files with 201 additions and 1 deletions

View File

@@ -5,7 +5,8 @@ CFLAGS += -lcmocka -lunicorn
CFLAGS += -I ../../include
ALL_TESTS = test_sanity test_x86 test_mem_map test_mem_high test_mem_map_ptr \
test_tb_x86 test_multihook test_pc_change test_x86_soft_paging
test_tb_x86 test_multihook test_pc_change test_x86_soft_paging \
test_hookcounts
.PHONY: all
all: ${ALL_TESTS}
@@ -26,6 +27,7 @@ test: ${ALL_TESTS}
./test_multihook
./test_pc_change
./test_x86_soft_paging
./test_hookcounts
test_sanity: test_sanity.c
test_x86: test_x86.c
@@ -36,6 +38,7 @@ test_tb_x86: test_tb_x86.c
test_multihook: test_multihook.c
test_pc_change: test_pc_change.c
test_x86_soft_paging: test_x86_soft_paging.c
test_hookcounts: test_hookcounts.c
${ALL_TESTS}:
${CC} ${CFLAGS} -o $@ $^