From: Tom Tromey Date: Tue, 13 Dec 2022 23:12:18 +0000 (-0700) Subject: Use require !skip_d_tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1952d8b04233bf0273878f57b92b7a991f7ff53c;p=binutils-gdb.git Use require !skip_d_tests This changes some tests to use "require !skip_d_tests". --- diff --git a/gdb/testsuite/gdb.dlang/debug-expr.exp b/gdb/testsuite/gdb.dlang/debug-expr.exp index a452a4976cb..aa5770080fc 100644 --- a/gdb/testsuite/gdb.dlang/debug-expr.exp +++ b/gdb/testsuite/gdb.dlang/debug-expr.exp @@ -15,7 +15,7 @@ # Test "set debug expr 1" on d expressions. -if { [skip_d_tests] } { return -1 } +require !skip_d_tests gdb_start gdb_test_no_output "set language d" diff --git a/gdb/testsuite/gdb.dlang/demangle.exp b/gdb/testsuite/gdb.dlang/demangle.exp index b7447b27392..23b2149974d 100644 --- a/gdb/testsuite/gdb.dlang/demangle.exp +++ b/gdb/testsuite/gdb.dlang/demangle.exp @@ -19,7 +19,7 @@ load_lib "d-support.exp" -if { [skip_d_tests] } { continue } +require !skip_d_tests ### Utility function for test_demangling and test_demangling_exact. proc test_demangling {test result} { diff --git a/gdb/testsuite/gdb.dlang/expression.exp b/gdb/testsuite/gdb.dlang/expression.exp index eee18eac7c5..3e82ad90deb 100644 --- a/gdb/testsuite/gdb.dlang/expression.exp +++ b/gdb/testsuite/gdb.dlang/expression.exp @@ -18,7 +18,7 @@ load_lib "d-support.exp" -if { [skip_d_tests] } { continue } +require !skip_d_tests proc test_d_integer_literals {} { # Test valid D integer literals are accepted. diff --git a/gdb/testsuite/gdb.dlang/primitive-types.exp b/gdb/testsuite/gdb.dlang/primitive-types.exp index 07b525b9245..7a114fc020f 100644 --- a/gdb/testsuite/gdb.dlang/primitive-types.exp +++ b/gdb/testsuite/gdb.dlang/primitive-types.exp @@ -18,7 +18,7 @@ load_lib "d-support.exp" -if { [skip_d_tests] } { continue } +require !skip_d_tests proc test_builtin_d_types_accepted {} { # Test types are recognised. diff --git a/gdb/testsuite/gdb.dlang/properties.exp b/gdb/testsuite/gdb.dlang/properties.exp index 3c7920de652..9164ce8ee5d 100644 --- a/gdb/testsuite/gdb.dlang/properties.exp +++ b/gdb/testsuite/gdb.dlang/properties.exp @@ -18,7 +18,7 @@ load_lib "d-support.exp" -if { [skip_d_tests] } { continue } +require !skip_d_tests proc test_d_sizeof {} { # Test use of .sizeof with types and expressions.