Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [committed][gdb/testsuite] Skip language auto in gdb.base/parse_number.exp
@ 2022-05-23  6:56 Tom de Vries via Gdb-patches
  0 siblings, 0 replies; only message in thread
From: Tom de Vries via Gdb-patches @ 2022-05-23  6:56 UTC (permalink / raw)
  To: gdb-patches

Hi,

In test-case gdb.base/parse_number.exp, we skip architecture auto in the
$supported_archs loop, to prevent duplicate testing.

Likewise, skip language auto and its alias local in the $::all_languages
loop.  This reduces the number of tests from 17744 to 15572.

Tested on x86_64-linux, with a build with --enable-targets=all.

Committed to trunk.

Thanks,
- Tom

[gdb/testsuite] Skip language auto in gdb.base/parse_number.exp

---
 gdb/testsuite/gdb.base/parse_number.exp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gdb/testsuite/gdb.base/parse_number.exp b/gdb/testsuite/gdb.base/parse_number.exp
index 444f5d0534b..197e27a8e9e 100644
--- a/gdb/testsuite/gdb.base/parse_number.exp
+++ b/gdb/testsuite/gdb.base/parse_number.exp
@@ -63,6 +63,10 @@ proc test_parse_numbers {arch} {
 
     foreach_with_prefix lang $::all_languages {
 	if { $lang == "unknown" } {
+	    # Tested outside $supported_archs loop.
+	    continue
+	} elseif { $lang == "auto" || $lang == "local" } {
+	    # Avoid duplicate testing.
 	    continue
 	}
 
@@ -117,6 +121,7 @@ set all_languages [get_set_option_choices "set language"]
 
 foreach_with_prefix arch $supported_archs {
     if {$arch == "auto"} {
+	# Avoid duplicate testing.
 	continue
     }
     test_parse_numbers $arch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-23  6:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  6:56 [committed][gdb/testsuite] Skip language auto in gdb.base/parse_number.exp Tom de Vries via Gdb-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox