From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id B20A53858D20; Fri, 27 Jan 2023 01:30:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B20A53858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674783021; bh=pckkTIUkfquO8BFWmv4e7/7lr4GmF+QrjjHuZ2k348U=; h=From:To:Subject:Date:From; b=nSfG2al85r4wQF/idZkfSdvPek9E72a2QB6nhovuA5888tRj2CLN35oZOpi9iLh8G WqnKxIiQLfpzsHrQJADvPc4iAiEmiGeucrtqLuw5ELiHvSNyQB4mHFIVkkr2Qq0Yim zw8OybZtEkhF+MMKikSZjAKoSgapAeGSVyOJbv3A= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Use clean_restart in gdb.ada X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: e8d8a0df4b35509c5fc051f1ff84b872f7f1bac0 X-Git-Newrev: 0ce635282edde8281d84cec08657dfb00cb42586 Message-Id: <20230127013021.B20A53858D20@sourceware.org> Date: Fri, 27 Jan 2023 01:30:21 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0ce635282edd= e8281d84cec08657dfb00cb42586 commit 0ce635282edde8281d84cec08657dfb00cb42586 Author: Tom Tromey Date: Wed Jan 25 10:48:27 2023 -0700 Use clean_restart in gdb.ada =20 Change gdb.ada to use clean_restart more consistently. Diff: --- gdb/testsuite/gdb.ada/assign_1.exp | 4 +--- gdb/testsuite/gdb.ada/boolean_expr.exp | 4 +--- gdb/testsuite/gdb.ada/ptype_arith_binop.exp | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/gdb/testsuite/gdb.ada/assign_1.exp b/gdb/testsuite/gdb.ada/ass= ign_1.exp index 88ba9a54f40..d5d81281e46 100644 --- a/gdb/testsuite/gdb.ada/assign_1.exp +++ b/gdb/testsuite/gdb.ada/assign_1.exp @@ -17,9 +17,7 @@ load_lib "ada.exp" =20 require allow_ada_tests =20 -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart =20 # Force the language to Ada, as this will not happen automatically # in this case (no test program). diff --git a/gdb/testsuite/gdb.ada/boolean_expr.exp b/gdb/testsuite/gdb.ada= /boolean_expr.exp index c3b854fd331..fda5da1ed79 100644 --- a/gdb/testsuite/gdb.ada/boolean_expr.exp +++ b/gdb/testsuite/gdb.ada/boolean_expr.exp @@ -17,9 +17,7 @@ load_lib "ada.exp" =20 require allow_ada_tests =20 -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart =20 set any_nb "\[0-9\]+" set any_addr "0x\[0-9a-zA-Z\]+" diff --git a/gdb/testsuite/gdb.ada/ptype_arith_binop.exp b/gdb/testsuite/gd= b.ada/ptype_arith_binop.exp index 19b85bfd4e1..bdfd5f0ce51 100644 --- a/gdb/testsuite/gdb.ada/ptype_arith_binop.exp +++ b/gdb/testsuite/gdb.ada/ptype_arith_binop.exp @@ -15,9 +15,7 @@ =20 require allow_ada_tests =20 -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart =20 gdb_test_no_output "set lang ada" \ "set lang ada"