From: Tom de Vries Date: Wed, 18 May 2022 10:12:29 +0000 (+0200) Subject: [gdb/testsuite] Simplify unknown lang testing in gdb.base/parse_number.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2ff75485c2db439923450dad90caa25615781ae;p=binutils-gdb.git [gdb/testsuite] Simplify unknown lang testing in gdb.base/parse_number.exp Move testing of language unknown out of the $supported_archs loop in gdb.base/parse_number.exp. This reduces total amount of tests from 18466 to 17744. Tested on x86_64-linux. --- diff --git a/gdb/testsuite/gdb.base/parse_number.exp b/gdb/testsuite/gdb.base/parse_number.exp index 9668099bd82..444f5d0534b 100644 --- a/gdb/testsuite/gdb.base/parse_number.exp +++ b/gdb/testsuite/gdb.base/parse_number.exp @@ -62,6 +62,10 @@ proc test_parse_numbers {arch} { } foreach_with_prefix lang $::all_languages { + if { $lang == "unknown" } { + continue + } + gdb_test_no_output "set language $lang" set val "0xffffffffffffffff" @@ -71,9 +75,6 @@ proc test_parse_numbers {arch} { gdb_test "ptype $val" " = $fortran_type" } elseif {$lang == "modula-2"} { gdb_test "p/x $val" "Overflow on numeric constant\\." - } elseif {$lang == "unknown"} { - gdb_test "p/x $val" \ - "expression parsing not implemented for language \"Unknown\"" } else { # D and Rust define their own built-in 64-bit types, and # are thus always able to parse/print 64-bit values. @@ -102,6 +103,10 @@ proc test_parse_numbers {arch} { clean_restart +gdb_test_no_output "set language unknown" +gdb_test "p/x 0" \ + "expression parsing not implemented for language \"Unknown\"" + gdb_test_no_output "set max-completions unlimited" set supported_archs [get_set_option_choices "set architecture"]