public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] PowerPC: Disable test gdb.arch/powerpc-power10.exp on non ISA 3.1 processors.
@ 2022-05-05 23:18 Carl Love
  2022-05-06  9:24 ` Ulrich Weigand
  0 siblings, 1 reply; 7+ messages in thread
From: Carl Love @ 2022-05-05 23:18 UTC (permalink / raw)
  To: gdb-patches, Ulrich Weigand; +Cc: cel, Will Schmidt, Rogerio Alves

GDB maintainers:

The test powerpc-power10.exp is only expected to run properly on Power
processors that support ISA 3.1.  The test should not be run on other
processors.

This patch adds the check for ISA 3.1 to the test to disable running it
on non ISA 3.1 processors.

Please let me know if this patch is acceptable.  Thanks.

                        Carl Love

---------------------------
PowerPC: Disable test gdb.arch/powerpc-power10.exp on non  ISA 3.1 processors.

The test should only run on systems that support ISA 3.1.  Currently the
test is running on older systems generating numerous test failures.

This patch disables the test unless the system supports ISA 3.1.

The patch has been tested on Power 10 and Power 7 to verify the change
works as expected.
---
 gdb/testsuite/gdb.arch/powerpc-power10.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.arch/powerpc-power10.exp b/gdb/testsuite/gdb.arch/powerpc-power10.exp
index bc52a72d9de..f5b6f441825 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power10.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-power10.exp
@@ -20,7 +20,7 @@
 standard_testfile .s
 set objfile [standard_output_file ${testfile}.o]
 
-if {![istarget "powerpc*-*-*"]} then {
+if {![istarget "powerpc*-*-*"] || [skip_power_isa_3_1_tests]} then {
     verbose "Skipping PowerPC instructions disassembly."
     return
 }
-- 
2.31.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-12  9:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 23:18 [PATCH] PowerPC: Disable test gdb.arch/powerpc-power10.exp on non ISA 3.1 processors Carl Love
2022-05-06  9:24 ` Ulrich Weigand
2022-05-06 15:32   ` will schmidt
2022-05-06 17:03     ` Ulrich Weigand
2022-05-11 22:58       ` Carl Love
2022-05-11 23:40       ` [PATCH V2] " Carl Love
2022-05-12  9:03         ` Ulrich Weigand

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).