Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the analysis_global_var test when running from the build dir. #3826

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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