Nguyen Anh Quynh
441d15e314
test: correct the input code for test_i386_invalid_mem_read()
2015-09-21 21:45:32 +08:00
Jonathon Reinhart
163e9020c8
test/unit: add test_sanity
...
This test ensures that the custom uc_assert_xxx() macros are working
as intended.
2015-09-21 08:37:27 -04:00
Jonathon Reinhart
02daa8df46
test/unit: simplify uc_assert_fail() macro
...
This removes the UC_ASSERT_ERR_ANY constant, which was causing a
compilation error on OSX:
error: comparison of constant 3735928559 with expression of type
'uc_err' (aka 'enum uc_err') is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
I could have probably changed 0xDEADBEEF to a constant < 0x80000000
but this seems cleaner anyway.
2015-09-21 08:37:21 -04:00
Jonathon Reinhart
07122809b5
test/unit: add test_basic_blocks
...
This verifies that the basic block callback is working as expected.
2015-09-20 22:45:45 -04:00
Jonathon Reinhart
46ee860084
update to new error constants and silence printfs
2015-09-20 22:16:48 -04:00
Jonathon Reinhart
7a98fc4e78
add tests to test_x86.c from samples/
2015-09-20 21:13:22 -04:00
Jonathon Reinhart
c026c23efb
add more mem map API tests
2015-09-20 21:13:22 -04:00
Jonathon Reinhart
4dae31b25e
add uc_assert_(err|fail) macros
2015-09-20 21:13:22 -04:00
Jonathon Reinhart
df3966a90c
continued work on test framework
2015-09-20 21:13:22 -04:00
Jonathon Reinhart
d4de54601d
add start of test_mem_map.c
2015-09-20 21:13:22 -04:00
Jonathon Reinhart
12909e6a4c
add basic cmocka unit test
2015-09-20 21:13:22 -04:00