elf/tst-dl_find_object: Disable subtests for non-contiguous maps (bug 28732)

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
Florian Weimer 2022-01-17 09:57:19 +01:00
parent 8eb2510d38
commit 06200aac9b

View File

@ -71,19 +71,24 @@ check (void *address,
__FILE__, line, address, __FILE__, line, address,
actual.dlfo_flags, expected->dlfo_flags); actual.dlfo_flags, expected->dlfo_flags);
} }
if (actual.dlfo_flags != expected->dlfo_flags) if (expected->dlfo_link_map->l_contiguous)
{ {
support_record_failure (); /* If the mappings are not contiguous, the actual and execpted
printf ("%s:%d: error: %p: map start is %p, expected %p\n", mappings may differ, so this subtest will not work. */
__FILE__, line, if (actual.dlfo_flags != expected->dlfo_flags)
address, actual.dlfo_map_start, expected->dlfo_map_start); {
} support_record_failure ();
if (actual.dlfo_map_end != expected->dlfo_map_end) printf ("%s:%d: error: %p: map start is %p, expected %p\n",
{ __FILE__, line,
support_record_failure (); address, actual.dlfo_map_start, expected->dlfo_map_start);
printf ("%s:%d: error: %p: map end is %p, expected %p\n", }
__FILE__, line, if (actual.dlfo_map_end != expected->dlfo_map_end)
address, actual.dlfo_map_end, expected->dlfo_map_end); {
support_record_failure ();
printf ("%s:%d: error: %p: map end is %p, expected %p\n",
__FILE__, line,
address, actual.dlfo_map_end, expected->dlfo_map_end);
}
} }
if (actual.dlfo_link_map != expected->dlfo_link_map) if (actual.dlfo_link_map != expected->dlfo_link_map)
{ {