[gdb/testsuite] Skip language auto in gdb.base/parse_number.exp
authorTom de Vries <tdevries@suse.de>
Mon, 23 May 2022 06:55:46 +0000 (08:55 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 23 May 2022 06:55:46 +0000 (08:55 +0200)
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.

gdb/testsuite/gdb.base/parse_number.exp

index 444f5d0534b39d2bf4064db99b1531e9790395c8..197e27a8e9e8f96b631b407696e67cbbcacb2369 100644 (file)
@@ -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