aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-05-23 08:55:46 +0200
committerTom de Vries <tdevries@suse.de>2022-05-23 08:55:46 +0200
commitcb0d58bf4d274cfb1ae11b75bd2b3ba81c8d371d (patch)
treee7becab312f409a39b083a2fb0de9deea630e604 /gdb
parent8d4b0049b533945bcc8977bfd5ab79371c44de81 (diff)
downloadgdb-cb0d58bf4d274cfb1ae11b75bd2b3ba81c8d371d.zip
gdb-cb0d58bf4d274cfb1ae11b75bd2b3ba81c8d371d.tar.gz
gdb-cb0d58bf4d274cfb1ae11b75bd2b3ba81c8d371d.tar.bz2
[gdb/testsuite] Skip language auto in gdb.base/parse_number.exp
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/parse_number.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/parse_number.exp b/gdb/testsuite/gdb.base/parse_number.exp
index 444f5d0..197e27a 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