From 1952d8b04233bf0273878f57b92b7a991f7ff53c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 13 Dec 2022 16:12:18 -0700 Subject: [PATCH] Use require !skip_d_tests This changes some tests to use "require !skip_d_tests". --- gdb/testsuite/gdb.dlang/debug-expr.exp | 2 +- gdb/testsuite/gdb.dlang/demangle.exp | 2 +- gdb/testsuite/gdb.dlang/expression.exp | 2 +- gdb/testsuite/gdb.dlang/primitive-types.exp | 2 +- gdb/testsuite/gdb.dlang/properties.exp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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. -- 2.30.2