Add a new unit test file

This commit is contained in:
mio 2021-10-20 21:27:22 +02:00
parent 567bd08b86
commit 91451aa2f5
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 8 additions and 0 deletions

View File

@ -1100,6 +1100,9 @@ if (UNICORN_HAS_RISCV)
set(UNICORN_TEST_FILE ${UNICORN_TEST_FILE} test_riscv)
endif()
# Extra tests
set(UNICORN_TEST_FILE ${UNICORN_TEST_FILE} test_mem)
target_compile_options(unicorn PRIVATE
${UNICORN_COMPILE_OPTIONS}
)

5
tests/unit/test_mem.c Normal file
View File

@ -0,0 +1,5 @@
#include "unicorn_test.h"
TEST_LIST = {
{ NULL, NULL }
};