diff --git a/tests/regress/emu_stop_in_hook_overrun.c b/tests/regress/emu_stop_in_hook_overrun.c index 81ea93fd..3783ffae 100644 --- a/tests/regress/emu_stop_in_hook_overrun.c +++ b/tests/regress/emu_stop_in_hook_overrun.c @@ -9,16 +9,12 @@ Test for uc_emu_stop() in code hook not always stopping the emu at the current i #include #include #define PRIx64 "llX" -#ifdef DYNLOAD -#include -#else // DYNLOAD #include #ifdef _WIN64 #pragma comment(lib, "unicorn_staload64.lib") #else // _WIN64 #pragma comment(lib, "unicorn_staload.lib") #endif // _WIN64 -#endif // DYNLOAD // posix specific #else // _MSC_VER @@ -61,11 +57,6 @@ int main(int argc, char **argv, char **envp) uc_hook hhc; uint32_t val; - // dynamically load shared library -#ifdef DYNLOAD - uc_dyn_load(NULL, 0); -#endif - // Initialize emulator in MIPS 32bit little endian mode printf("uc_open()\n"); err = uc_open(UC_ARCH_MIPS, UC_MODE_MIPS32, &uc); @@ -120,11 +111,6 @@ int main(int argc, char **argv, char **envp) else printf("\n\nTEST FAILED!\n\n"); - // dynamically free shared library -#ifdef DYNLOAD - uc_dyn_free(); -#endif - return 0; } diff --git a/tests/regress/mips_branch_likely_issue.c b/tests/regress/mips_branch_likely_issue.c index 6da33ced..dbbf10d9 100644 --- a/tests/regress/mips_branch_likely_issue.c +++ b/tests/regress/mips_branch_likely_issue.c @@ -9,16 +9,12 @@ #include #include #define PRIx64 "llX" -#ifdef DYNLOAD -#include -#else // DYNLOAD #include #ifdef _WIN64 #pragma comment(lib, "unicorn_staload64.lib") #else // _WIN64 #pragma comment(lib, "unicorn_staload.lib") #endif // _WIN64 -#endif // DYNLOAD // posix specific #else // _MSC_VER @@ -80,11 +76,6 @@ int main(int argc, char **argv, char **envp) uc_hook hhc; uint32_t val; - // dynamically load shared library -#ifdef DYNLOAD - uc_dyn_load(NULL, 0); -#endif - // Initialize emulator in MIPS 32bit little endian mode printf("uc_open()\n"); err = uc_open(UC_ARCH_MIPS, UC_MODE_MIPS32, &uc); @@ -184,12 +175,6 @@ int main(int argc, char **argv, char **envp) else printf("TEST 2 FAILED!\n\n"); - - // dynamically free shared library -#ifdef DYNLOAD - uc_dyn_free(); -#endif - return 0; } diff --git a/tests/regress/mips_delay_slot_code_hook.c b/tests/regress/mips_delay_slot_code_hook.c index 4a407aec..e5452e6d 100644 --- a/tests/regress/mips_delay_slot_code_hook.c +++ b/tests/regress/mips_delay_slot_code_hook.c @@ -14,16 +14,12 @@ but that the code hook is just not occurring. #include #include #define PRIx64 "llX" -#ifdef DYNLOAD -#include -#else // DYNLOAD #include #ifdef _WIN64 #pragma comment(lib, "unicorn_staload64.lib") #else // _WIN64 #pragma comment(lib, "unicorn_staload.lib") #endif // _WIN64 -#endif // DYNLOAD // posix specific #else // _MSC_VER @@ -68,11 +64,6 @@ int main(int argc, char **argv, char **envp) uc_hook hhc; uint32_t val; - // dynamically load shared library -#ifdef DYNLOAD - uc_dyn_load(NULL, 0); -#endif - // Initialize emulator in MIPS 32bit little endian mode err = uc_open(UC_ARCH_MIPS, UC_MODE_MIPS32, &uc); if (err) @@ -128,11 +119,6 @@ int main(int argc, char **argv, char **envp) else printf("\n\nTEST FAILED!\n\n"); - // dynamically free shared library -#ifdef DYNLOAD - uc_dyn_free(); -#endif - return 0; } diff --git a/tests/regress/threaded_emu_start.c b/tests/regress/threaded_emu_start.c index 05776d7a..9301803d 100644 --- a/tests/regress/threaded_emu_start.c +++ b/tests/regress/threaded_emu_start.c @@ -20,16 +20,12 @@ background. #include #include #define PRIx64 "llX" -#ifdef DYNLOAD -#include -#else // DYNLOAD #include #ifdef _WIN64 #pragma comment(lib, "unicorn_staload64.lib") #else // _WIN64 #pragma comment(lib, "unicorn_staload.lib") #endif // _WIN64 -#endif // DYNLOAD // posix specific #else // _MSC_VER @@ -128,11 +124,6 @@ int main(int argc, char **argv, char **envp) pthread_t th; #endif - // dynamically load shared library -#ifdef DYNLOAD - uc_dyn_load(NULL, 0); -#endif - // Initialize emulator in MIPS 32bit little endian mode printf("uc_open()\n"); err = uc_open(UC_ARCH_MIPS, UC_MODE_MIPS32, &uc); @@ -231,11 +222,6 @@ int main(int argc, char **argv, char **envp) else printf("\n\nTEST FAILED!\n\n"); - // dynamically free shared library -#ifdef DYNLOAD - uc_dyn_free(); -#endif - return 0; }