From 08091e64b2344b2d808d9ddd3a6f52e14a37afde Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sun, 3 Sep 2023 21:35:30 +0300 Subject: [PATCH] Fix the analysis_global_var test when running from the build dir. --- test/integration/test_analysis_global_var.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/test_analysis_global_var.c b/test/integration/test_analysis_global_var.c index 858dd7d2322..52edffa026e 100644 --- a/test/integration/test_analysis_global_var.c +++ b/test/integration/test_analysis_global_var.c @@ -3,11 +3,13 @@ #include #include +#include "test_config.h" #include "../unit/minunit.h" bool test_rz_analysis_global_var() { RzCore *core = rz_core_new(); RzAnalysis *analysis = core->analysis; + rz_type_db_init(analysis->typedb, TEST_BUILD_TYPES_DIR, NULL, 0, NULL); RzAnalysisVarGlobal *glob = rz_analysis_var_global_new("foo", 0x1337); mu_assert_notnull(glob, "create a global variable"); @@ -208,6 +210,7 @@ bool test_flag_confusion_addr() { bool test_flag_confusion_delete() { RzCore *core = rz_core_new(); RzAnalysis *analysis = core->analysis; + rz_type_db_init(analysis->typedb, TEST_BUILD_TYPES_DIR, NULL, 0, NULL); RzAnalysisVarGlobal *glob = rz_analysis_var_global_new("foo", 0x1337); RzTypeParser *parser = rz_type_parser_new();