Enable libproc symbol_lookup tests on arm64
This reverts part of r286863, as the kernel support required by these tests was added in r287105. PR: 202305 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
695ba2f98a
commit
9b68037fd0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287333
@ -40,9 +40,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <libproc.h>
|
#include <libproc.h>
|
||||||
|
|
||||||
static const char *aout_object = "a.out";
|
static const char *aout_object = "a.out";
|
||||||
#if !defined(__aarch64__)
|
|
||||||
static const char *ldelf_object = "ld-elf.so.1";
|
static const char *ldelf_object = "ld-elf.so.1";
|
||||||
#endif
|
|
||||||
static const char *target_prog_file = "target_prog";
|
static const char *target_prog_file = "target_prog";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -77,7 +75,6 @@ start_prog(const struct atf_tc *tc, bool sig)
|
|||||||
return (phdl);
|
return (phdl);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__aarch64__)
|
|
||||||
static void
|
static void
|
||||||
set_bkpt(struct proc_handle *phdl, uintptr_t addr, u_long *saved)
|
set_bkpt(struct proc_handle *phdl, uintptr_t addr, u_long *saved)
|
||||||
{
|
{
|
||||||
@ -154,7 +151,6 @@ verify_bkpt(struct proc_handle *phdl, GElf_Sym *sym, const char *symname,
|
|||||||
ATF_REQUIRE_EQ_MSG(strcmp(mapname, mapbname), 0,
|
ATF_REQUIRE_EQ_MSG(strcmp(mapname, mapbname), 0,
|
||||||
"expected map name '%s' doesn't match '%s'", mapname, mapbname);
|
"expected map name '%s' doesn't match '%s'", mapname, mapbname);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
ATF_TC(map_alias_obj2map);
|
ATF_TC(map_alias_obj2map);
|
||||||
ATF_TC_HEAD(map_alias_obj2map, tc)
|
ATF_TC_HEAD(map_alias_obj2map, tc)
|
||||||
@ -259,7 +255,6 @@ ATF_TC_BODY(map_alias_name2sym, tc)
|
|||||||
proc_free(phdl);
|
proc_free(phdl);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__aarch64__)
|
|
||||||
ATF_TC(symbol_lookup);
|
ATF_TC(symbol_lookup);
|
||||||
ATF_TC_HEAD(symbol_lookup, tc)
|
ATF_TC_HEAD(symbol_lookup, tc)
|
||||||
{
|
{
|
||||||
@ -336,7 +331,6 @@ ATF_TC_BODY(symbol_lookup_fail, tc)
|
|||||||
|
|
||||||
proc_free(phdl);
|
proc_free(phdl);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
ATF_TC(signal_forward);
|
ATF_TC(signal_forward);
|
||||||
ATF_TC_HEAD(signal_forward, tc)
|
ATF_TC_HEAD(signal_forward, tc)
|
||||||
@ -385,11 +379,8 @@ ATF_TP_ADD_TCS(tp)
|
|||||||
ATF_TP_ADD_TC(tp, map_alias_obj2map);
|
ATF_TP_ADD_TC(tp, map_alias_obj2map);
|
||||||
ATF_TP_ADD_TC(tp, map_alias_name2map);
|
ATF_TP_ADD_TC(tp, map_alias_name2map);
|
||||||
ATF_TP_ADD_TC(tp, map_alias_name2sym);
|
ATF_TP_ADD_TC(tp, map_alias_name2sym);
|
||||||
/* On arm64 triggers panic ARM64TODO: pmap_sync_icache (PR202305). */
|
|
||||||
#if !defined(__aarch64__)
|
|
||||||
ATF_TP_ADD_TC(tp, symbol_lookup);
|
ATF_TP_ADD_TC(tp, symbol_lookup);
|
||||||
ATF_TP_ADD_TC(tp, symbol_lookup_fail);
|
ATF_TP_ADD_TC(tp, symbol_lookup_fail);
|
||||||
#endif
|
|
||||||
ATF_TP_ADD_TC(tp, signal_forward);
|
ATF_TP_ADD_TC(tp, signal_forward);
|
||||||
|
|
||||||
return (atf_no_error());
|
return (atf_no_error());
|
||||||
|
Loading…
Reference in New Issue
Block a user