Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
elf: test analysing a non elf file
Baptiste Daroussin committed 1 year ago
commit d00e8cd32c4a4a10d764e0ea566f7cf7ce59d8b3
parent 7fb71e99407f864bbb4740e6b78b0e07ef40997c
1 file changed +4 -0
modified tests/lib/pkg_elf.c
@@ -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);

}