Skip to content

Commit

Permalink
Fix the analysis_global_var test when running from the build dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowd authored and Viktor Volisov committed Sep 16, 2023
1 parent 8d2cd24 commit 7e1b428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/test_analysis_global_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

#include <rz_analysis.h>
#include <rz_core.h>
#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");
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 7e1b428

Please sign in to comment.