Skip to content

Commit

Permalink
elf: test analysing a non elf file
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Nov 21, 2024
1 parent 7fb71e9 commit d00e8cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lib/pkg_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ ATF_TC_BODY(analyse_elf, tc)
ATF_REQUIRE_STREQ(tll_front(p->shlibs_provided), "libtestfbsd.so.1");

free(binpath);
xasprintf(&binpath, "%s/Makefile.autosetup", atf_tc_get_config_var(tc, "srcdir"));
ATF_REQUIRE_EQ(pkg_analyse_elf(false, p, binpath), EPKG_END);
ATF_REQUIRE_EQ(tll_length(p->shlibs_provided), 1);
free(binpath);

}

Expand Down

0 comments on commit d00e8cd

Please sign in to comment.