[PATCH 1/3] debugedit: skip .debug_types tests if compiler doesn't generate section
Dmitry V. Levin
ldv@altlinux.org
Sat Mar 25 11:30:43 GMT 2023
On Sat, Mar 25, 2023 at 12:58:05AM +0100, Mark Wielaard wrote:
> Some compilers don't generate a .debug_types section even when compiling
> with -fdebug-types-section. Skip testing the .debug_types tests in that
> case.
>
> Signed-off-by: Mark Wielaard <mark@klomp.org>
> ---
> tests/debugedit.at | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/debugedit.at b/tests/debugedit.at
> index 725e68e..0601127 100644
> --- a/tests/debugedit.at
> +++ b/tests/debugedit.at
> @@ -364,6 +364,7 @@ AT_CLEANUP
> AT_SETUP([debugedit .debug_types objects])
> AT_KEYWORDS([debugtypes] [debugedit])
> DEBUGEDIT_SETUP([-fdebug-types-section -gdwarf-4])
> +AT_SKIP_IF([! $READELF -S ./foo.o ./subdir_bar/bar.o ./baz.o | grep -q '.debug_types'])
Should it rather be grep -F -q?
--
ldv
More information about the Debugedit
mailing list