[PATCH v1] aarch64 tests: escape dot in regex pattern to really match a dot
Richard Earnshaw (lists)
Richard.Earnshaw@arm.com
Wed Apr 9 15:56:29 GMT 2025
On 09/04/2025 11:56, Matthieu Longo wrote:
> This patch fixes a mistake in the matching pattern of some AArch64 tests.
> It escapes a dot in regex patterns to really match a dot.
>
> Tested on aarch64-none-linux-gnu, and no regression found.
>
This was benign, since the the regex '.' would also match a literal '.'.
But since you've written the patch and this is more correct, OK.
R.
> Regards,
> Matthieu.
>
> ---
> gas/testsuite/gas/aarch64/pac_ab_key.d | 2 +-
> gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d | 2 +-
> gas/testsuite/gas/aarch64/pac_negate_ra_state.d | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/gas/testsuite/gas/aarch64/pac_ab_key.d b/gas/testsuite/gas/aarch64/pac_ab_key.d
> index 4012d14f275..04d5fa41822 100644
> --- a/gas/testsuite/gas/aarch64/pac_ab_key.d
> +++ b/gas/testsuite/gas/aarch64/pac_ab_key.d
> @@ -7,7 +7,7 @@
>
> .+: file .+
>
> -Contents of the .eh_frame section:
> +Contents of the \.eh_frame section:
>
> 0+ 0+10 0+ CIE
> Version: 1
> diff --git a/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d b/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d
> index 8e59086c1b4..6ef77aeaa6d 100644
> --- a/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d
> +++ b/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d
> @@ -22,7 +22,7 @@
>
> .+: file .+
>
> -Contents of the .eh_frame section:
> +Contents of the \.eh_frame section:
>
> 0+ 0+10 0+ CIE
> Version: 1
> diff --git a/gas/testsuite/gas/aarch64/pac_negate_ra_state.d b/gas/testsuite/gas/aarch64/pac_negate_ra_state.d
> index f49cebcbfde..fa29c7f3b90 100644
> --- a/gas/testsuite/gas/aarch64/pac_negate_ra_state.d
> +++ b/gas/testsuite/gas/aarch64/pac_negate_ra_state.d
> @@ -4,7 +4,7 @@
>
> .+: file .+
>
> -Contents of the .eh_frame section:
> +Contents of the \.eh_frame section:
>
> 0+ 0+10 0+ CIE
> Version: 1
More information about the Binutils
mailing list