public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Luis Machado <luis.machado@arm.com>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 25/46] Use require is_aarch64_target
Date: Mon, 19 Dec 2022 10:46:24 +0000	[thread overview]
Message-ID: <8fcd2f4e-2613-6aa7-48b8-611c39bbfb55@arm.com> (raw)
In-Reply-To: <20221217000818.3729389-26-tom@tromey.com>

On 12/17/22 00:07, Tom Tromey wrote:
> This changes some tests to use "require is_aarch64_target".
> ---
>   gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp     | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp    | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-dbreg-contents.exp  | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-fp.exp              | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-mte-core.exp        | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-mte.exp             | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-pauth.exp           | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-prologue.exp        | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp  | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp       | 5 +----
>   gdb/testsuite/gdb.arch/aarch64-w-registers.exp     | 5 +----
>   12 files changed, 12 insertions(+), 48 deletions(-)
> 
> diff --git a/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp b/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
> index 18843d341e1..a72210ffa68 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
> @@ -18,10 +18,7 @@
>   # Test single stepping through atomic sequences beginning with
>   # a ldxr instruction and ending with a stxr instruction.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile
>   if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> diff --git a/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp b/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp
> index f4ecc554379..9e1f7d6f8a6 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp
> @@ -18,10 +18,7 @@
>   # Test if GDB stops at various BRK instruction patterns inserted into
>   # the code.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile
>   if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
> diff --git a/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.exp b/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.exp
> index add1234e606..f8606e219ad 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.exp
> @@ -21,10 +21,7 @@
>   #
>   # See PR breakpoints/21870.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile .c
>   
> diff --git a/gdb/testsuite/gdb.arch/aarch64-fp.exp b/gdb/testsuite/gdb.arch/aarch64-fp.exp
> index 41c162b4d50..48c39951e4f 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-fp.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-fp.exp
> @@ -18,10 +18,7 @@
>   # PR server/17457
>   # Test aarch64 floating point registers q0, q1, v0, v1, fpsr, fpcr
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile
>   if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> diff --git a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
> index 904364d027c..5ebc6d7d1ee 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
> @@ -164,10 +164,7 @@ proc test_mode { mode } {
>   
>   }
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   # Run tests
>   foreach_with_prefix mode {"sync" "async"} {
> diff --git a/gdb/testsuite/gdb.arch/aarch64-mte.exp b/gdb/testsuite/gdb.arch/aarch64-mte.exp
> index 4aaf1844f24..a4a8a20d8aa 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-mte.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-mte.exp
> @@ -43,10 +43,7 @@ proc get_ltag_from_ptr { ptr } {
>   		      "fetch tag from pointer ${ptr}"]
>   }
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile
>   if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> diff --git a/gdb/testsuite/gdb.arch/aarch64-pauth.exp b/gdb/testsuite/gdb.arch/aarch64-pauth.exp
> index 901eb8212c9..54bf16c5f67 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-pauth.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-pauth.exp
> @@ -17,10 +17,7 @@
>   # supports pauth instructions.  On non pauth systems, all pauth instructions
>   # are treated as nops.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   # Build program with address signing forced on.
>   standard_testfile
> diff --git a/gdb/testsuite/gdb.arch/aarch64-prologue.exp b/gdb/testsuite/gdb.arch/aarch64-prologue.exp
> index d17dc668873..588bc269336 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-prologue.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-prologue.exp
> @@ -15,10 +15,7 @@
>   
>   # This file is part of the gdb testsuite.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return 1
> -}
> +require is_aarch64_target
>   
>   standard_testfile
>   if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
> diff --git a/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp b/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp
> index 7cb3adad076..1175e8d6b4f 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp
> @@ -15,10 +15,7 @@
>   #
>   # This file is part of the gdb testsuite.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return -1
> -}
> +require is_aarch64_target
>   
>   set compile_flags {debug}
>   
> diff --git a/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp b/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp
> index 6e94a8fc11a..8faf92bee8d 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp
> @@ -15,10 +15,7 @@
>   #
>   # This file is part of the gdb testsuite.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile
>   if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> diff --git a/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp b/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp
> index a6d549a9830..9e9613aa3f9 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp
> @@ -17,10 +17,7 @@
>   
>   # Test explicitly unwinding the PC DWARF register on aarch64
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile .S
>   
> diff --git a/gdb/testsuite/gdb.arch/aarch64-w-registers.exp b/gdb/testsuite/gdb.arch/aarch64-w-registers.exp
> index 72711fe660f..7e4fc24c3cb 100644
> --- a/gdb/testsuite/gdb.arch/aarch64-w-registers.exp
> +++ b/gdb/testsuite/gdb.arch/aarch64-w-registers.exp
> @@ -16,10 +16,7 @@
>   # Check if the W registers have the expected size and if setting/fetching
>   # values from W registers works correctly for both big and little endian.
>   
> -if {![is_aarch64_target]} {
> -    verbose "Skipping ${gdb_test_file_name}."
> -    return
> -}
> +require is_aarch64_target
>   
>   standard_testfile
>   if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {

LGTM.

  reply	other threads:[~2022-12-19 10:46 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-17  0:07 [PATCH 00/46] Rewrite "require" test procedure and use it more often Tom Tromey
2022-12-17  0:07 ` [PATCH 01/46] Don't use ensure_gdb_index with require Tom Tromey
2022-12-17  0:07 ` [PATCH 02/46] Change 'require' to accept a list of predicates Tom Tromey
2022-12-17  0:07 ` [PATCH 03/46] Use unsupported in 'require' Tom Tromey
2022-12-23 12:39   ` Aktemur, Tankut Baris
2023-01-06  1:14     ` Tom Tromey
2022-12-17  0:07 ` [PATCH 04/46] Use require supports_reverse Tom Tromey
2022-12-17  0:07 ` [PATCH 05/46] Use require supports_process_record Tom Tromey
2022-12-17  0:07 ` [PATCH 06/46] Use require dwarf2_support Tom Tromey
2022-12-17  0:07 ` [PATCH 07/46] Use require is_x86_like_target Tom Tromey
2022-12-17  0:07 ` [PATCH 08/46] Use require skip_cplus_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 09/46] Use require skip_shlib_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 10/46] Use require skip_dlmopen_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 11/46] Use require skip_stl_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 12/46] Use require skip_rust_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 13/46] Use require skip_fortran_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 14/46] Use require skip_ada_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 15/46] Use require skip_go_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 16/46] Use require skip_d_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 17/46] Use require skip_ctf_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 18/46] Use require skip_hw_watchpoint_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 19/46] Use require skip_ifunc_tests Tom Tromey
2022-12-17  0:07 ` [PATCH 20/46] Use require skip_aarch64_sve_tests Tom Tromey
2022-12-19 10:50   ` Luis Machado
2022-12-17  0:07 ` [PATCH 21/46] Use require skip_btrace_tests Tom Tromey
2022-12-17  1:15   ` Enze Li
2022-12-18  0:48     ` Tom Tromey
2022-12-19  5:13       ` Enze Li
2022-12-19 14:44         ` Tom Tromey
2022-12-17  0:07 ` [PATCH 22/46] " Tom Tromey
2022-12-17  9:22   ` Metzger, Markus T
2022-12-18 17:46     ` Tom Tromey
2022-12-17  0:07 ` [PATCH 23/46] Use require skip_avx_* Tom Tromey
2022-12-17  0:07 ` [PATCH 24/46] Use require support_displaced_stepping Tom Tromey
2022-12-17  0:07 ` [PATCH 25/46] Use require is_aarch64_target Tom Tromey
2022-12-19 10:46   ` Luis Machado [this message]
2022-12-17  0:07 ` [PATCH 26/46] Use require is_aarch32_target Tom Tromey
2022-12-19 10:46   ` Luis Machado
2022-12-17  0:07 ` [PATCH 27/46] Use require is_amd64_regs_target Tom Tromey
2022-12-17  0:08 ` [PATCH 28/46] Use require is_elf_target Tom Tromey
2022-12-17  0:08 ` [PATCH 29/46] Use require can_single_step_to_signal_handler Tom Tromey
2022-12-17  0:08 ` [PATCH 30/46] Use require supports_get_siginfo_type Tom Tromey
2022-12-17  0:08 ` [PATCH 31/46] Use require support_go_compile Tom Tromey
2022-12-17  0:08 ` [PATCH 32/46] Use require use_gdb_stub Tom Tromey
2022-12-17  0:08 ` [PATCH 33/46] Use require can_spawn_for_attach Tom Tromey
2022-12-17  0:08 ` [PATCH 34/46] Use require isnative Tom Tromey
2022-12-17  0:08 ` [PATCH 35/46] Use require skip_gdbserver_tests Tom Tromey
2022-12-17  0:08 ` [PATCH 36/46] Use require skip_shlib_tests Tom Tromey
2022-12-17  0:08 ` [PATCH 37/46] Use require is_c_compiler_gcc Tom Tromey
2022-12-17  0:08 ` [PATCH 38/46] Use require gdb_debug_enabled Tom Tromey
2022-12-17  0:08 ` [PATCH 39/46] Use require gdb_skip_xml_test Tom Tromey
2022-12-17  0:08 ` [PATCH 40/46] Use require gdb_trace_common_supports_arch Tom Tromey
2022-12-17  0:08 ` [PATCH 41/46] Use require skip_perf_tests Tom Tromey
2022-12-17  0:08 ` [PATCH 42/46] Use require skip_opencl_tests Tom Tromey
2022-12-17  0:08 ` [PATCH 43/46] Use require target_can_use_run_cmd Tom Tromey
2022-12-17  0:08 ` [PATCH 44/46] Use require using_fission Tom Tromey
2022-12-17  0:08 ` [PATCH 45/46] Use require skip_debuginfod_tests Tom Tromey
2022-12-17  0:08 ` [PATCH 46/46] Use require gnat_runtime_has_debug_info Tom Tromey
2022-12-19 10:49 ` [PATCH 00/46] Rewrite "require" test procedure and use it more often Luis Machado
2023-01-06  2:45   ` Tom Tromey
2023-01-05  1:29 ` Kevin Buettner
2023-01-06  2:47   ` Tom Tromey
2023-01-07  0:07     ` Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8fcd2f4e-2613-6aa7-48b8-611c39bbfb55@arm.com \
    --to=luis.machado@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).