From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wfBUIoAE72n/4z0AWB0awg (envelope-from ) for ; Mon, 27 Apr 2026 02:38:56 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=oMhjy1IM; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 863771E0BA; Mon, 27 Apr 2026 02:38:56 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id BF74E1E093 for ; Mon, 27 Apr 2026 02:38:53 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 5B07F4BB3B81 for ; Mon, 27 Apr 2026 06:38:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B07F4BB3B81 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=oMhjy1IM Received: from mail-dl1-x122b.google.com (mail-dl1-x122b.google.com [IPv6:2607:f8b0:4864:20::122b]) by sourceware.org (Postfix) with ESMTPS id D81974BB1C2D for ; Mon, 27 Apr 2026 06:36:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D81974BB1C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D81974BB1C2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::122b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271769; cv=none; b=btF5I1XfPtSA5ajsj/NL29hYZMIwubN7fkxK5DngVJ/F7eQ20Z995lAJEhO1Y+UzT+5mZvJCYeuRTpHNrN3U7R2txcsc4HP9Br4nPcrqjtnHBRR3IXSYLCRXpPJoZT433JXkxWtLdI9GDqdGAqxxQ6CdRkW7+19a7XczjWeNBM8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271769; c=relaxed/simple; bh=+mvqkkvEdCIOHCJcuSPjvsbEAtIG9oTWDZG0rMFJlfI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nj+rwzVXLWDnFZENf4DXwgbr7eKDrhQDEbxW0lyM+4S27LbDnCrrErXWK6t22XbaUVoKddHsv7V60VycM0fxWbFAuKEVNpU9iYbw+Kl7/VuMYAwb+v1Uvd4tJ6+IJ9KmqQFg987ogzhMfEiwwDOhp48Ui6+qXnNT1Es1hdxpn1w= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D81974BB1C2D Received: by mail-dl1-x122b.google.com with SMTP id a92af1059eb24-12c1a170a50so12280103c88.0 for ; Sun, 26 Apr 2026 23:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777271768; x=1777876568; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=U3XsYFzY7B40DdZIaoYlv/ZdJuDAqxcljdk4NVnImsE=; b=oMhjy1IMT+K3dey8hLuYfMWwNHrzk8Cbk4n7Hl6NMuLfYWyF044gkNdLKenYRJmw6s bB2HDDJAJscKwsomb/sxRw9EdumJr0sfr0q8hrbU0i9PEgYruLWpQLS5yXWbx/J0mz9c GMiEkl0Gktt3UptKyrq5fnZMTGIGvnz3DXMX5ARdvVmOWtp5hvsVmTqHRssetZY/6SHZ gnM7nXijg7KMTL1Sp7pUlXmhYwG3NqP8DFtub7WICMNVQFEsrGXfYulGHSEkydb5axhE 7WQV8At4kiqQX3+NlerygarqoX6tsDdgzfxV8Rp7dC0ls8SBbh8oLt3lcL49tJZX7p1C iEGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777271768; x=1777876568; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=U3XsYFzY7B40DdZIaoYlv/ZdJuDAqxcljdk4NVnImsE=; b=d95Fp2VMcC5EuUsm98Y37WXodZcwtdFrVMHYMGF+cBbmbWwl4MIASjMDOxicbb2u7Y 6bD9HxEnbLGNfgZrtUwtkOrxd8GQEHkjUAL3R/DzjbUxSU3AvaMvbaQETYmQvmrOyg/O Nr0MxCAiodjV0k4GO6uL50aJVmYnwEHTrdMnYdoPQmrvHlhia4na7/U0nSUqZiTGR8Jg kmPjncn24CLyqdH0uG+01fJpfqM8dqP7fL5kOp8LY7p3pJa5nywZJw0YnkQYVzNMETCh +T9uF6xCOrejxiou/fi132qIF5GGVY9OZMLfwuqD9/zN+LG4e93lGeROrzxH1WpucOms KhbQ== X-Gm-Message-State: AOJu0YykNrP2CuLdzjfnOhCvdtyCZ+l2zSHwfbavRo8ZP6TtMSaFDY1J W2AMoiIKzrqUaOY9I/YhSCbB/4DuiKQyBnZPM2LLlBTc7QSY8OKc9PuYBTamMFS6lm9eVxEeSp1 Zdm8f X-Gm-Gg: AeBDievdeGTIYs1FofIesDmWrnpUp7Ecgd5/i53RT2nDFkrVoQUtzJOsItsZsHigeY2 pzeSofyyB+gurkvi9HkYfCWLEJIazJZtFSDlUJCZdmTBSJYzvd5FxpR5w6gbyx2+J7IUl6qEcHb DSBD1IpLQ77NyM9Mltdhv9azF3nbHPz6hzYkQothLW1U5xpitCzH9DlXmKQ6DRdm6XsIfceHln4 ZMHScHqVYRI/7UTqUUrt9fJllv2Hrq6g/Eac9ZH4C2H/X8f9cb8ttH8gd2iQvJqzUP+eLwb4Pug BvE6otp2Z0xRhS4k60w8VBVxMAsOrenEKAOewlavr6TSjXG8vEpWUrO6lG/JrcoeDrP3g510G9W PqvHdXIPS8uGotaM0jVmWzpT+NoIyV7XYdfCr6diI8waN5POBn6hvWvwnSyRjD+4wNwjTUfMOhI ofnJKEq4UTQLm+ofgU7a6RTyTqYFF5DMTFqJ8GRcu77jMjdtUi+4xBbDs= X-Received: by 2002:a05:7022:4393:b0:128:e6d0:d7c3 with SMTP id a92af1059eb24-12c73f91fafmr17351298c88.20.1777271767029; Sun, 26 Apr 2026 23:36:07 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:33bc:f32e:9aa5:b915]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12dc81d0c73sm14005206c88.7.2026.04.26.23.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 23:36:06 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH 16/36] GDB: testsuite: C++: Don't return -1 from top-level (sed) Date: Mon, 27 Apr 2026 03:34:40 -0300 Message-ID: <20260427063500.3847618-17-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260427063500.3847618-1-thiago.bauermann@linaro.org> References: <20260427063500.3847618-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This patch is purely the result of running: $ sed -i 's/^ return -1/ return/' *.exp* inside gdb/testsuite/gdb.cp. --- gdb/testsuite/gdb.cp/abstract-origin.exp | 4 ++-- gdb/testsuite/gdb.cp/align.exp | 2 +- gdb/testsuite/gdb.cp/ambiguous.exp | 2 +- gdb/testsuite/gdb.cp/annota2.exp | 2 +- gdb/testsuite/gdb.cp/annota3.exp | 2 +- gdb/testsuite/gdb.cp/anon-ns.exp | 2 +- gdb/testsuite/gdb.cp/anon-union.exp | 2 +- gdb/testsuite/gdb.cp/arg-reference.exp | 2 +- gdb/testsuite/gdb.cp/baseenum.exp | 4 ++-- gdb/testsuite/gdb.cp/bool.exp | 2 +- gdb/testsuite/gdb.cp/break-template-cast.exp | 2 +- gdb/testsuite/gdb.cp/breakpoint-locs.exp | 2 +- gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp | 6 +++--- gdb/testsuite/gdb.cp/breakpoint.exp | 2 +- gdb/testsuite/gdb.cp/bs15503.exp | 2 +- gdb/testsuite/gdb.cp/call-c.exp | 2 +- gdb/testsuite/gdb.cp/call-method-register.exp | 6 +++--- gdb/testsuite/gdb.cp/casts.exp | 4 ++-- gdb/testsuite/gdb.cp/chained-calls.exp | 4 ++-- gdb/testsuite/gdb.cp/class2.exp | 2 +- gdb/testsuite/gdb.cp/classes.exp | 2 +- gdb/testsuite/gdb.cp/cmpd-minsyms.exp | 2 +- gdb/testsuite/gdb.cp/cold-clone.exp | 2 +- gdb/testsuite/gdb.cp/constexpr-field.exp | 2 +- gdb/testsuite/gdb.cp/cp-relocate.exp | 2 +- gdb/testsuite/gdb.cp/cpcompletion.exp | 4 ++-- gdb/testsuite/gdb.cp/cpexprs.exp.tcl | 2 +- gdb/testsuite/gdb.cp/cplabel.exp | 4 ++-- gdb/testsuite/gdb.cp/cplusfuncs.exp | 2 +- gdb/testsuite/gdb.cp/ctti.exp | 2 +- gdb/testsuite/gdb.cp/derivation.exp | 2 +- gdb/testsuite/gdb.cp/destrprint.exp | 4 ++-- gdb/testsuite/gdb.cp/disasm-func-name.exp | 2 +- gdb/testsuite/gdb.cp/dispcxx.exp | 2 +- gdb/testsuite/gdb.cp/empty-enum.exp | 4 ++-- gdb/testsuite/gdb.cp/ena-dis-br-range.exp | 4 ++-- gdb/testsuite/gdb.cp/enum-class.exp | 4 ++-- gdb/testsuite/gdb.cp/exception.exp | 2 +- gdb/testsuite/gdb.cp/exceptprint.exp | 8 ++++---- gdb/testsuite/gdb.cp/expand-sals.exp | 4 ++-- gdb/testsuite/gdb.cp/extern-c.exp | 2 +- gdb/testsuite/gdb.cp/filename.exp | 2 +- gdb/testsuite/gdb.cp/formatted-ref.exp | 2 +- gdb/testsuite/gdb.cp/gdb1355.exp | 2 +- gdb/testsuite/gdb.cp/gdb2384.exp | 4 ++-- gdb/testsuite/gdb.cp/gdb2495.exp | 2 +- gdb/testsuite/gdb.cp/hang.exp | 2 +- gdb/testsuite/gdb.cp/impl-this.exp | 2 +- gdb/testsuite/gdb.cp/infcall-dlopen.exp | 4 ++-- gdb/testsuite/gdb.cp/inherit.exp | 2 +- gdb/testsuite/gdb.cp/iostream.exp | 2 +- gdb/testsuite/gdb.cp/local.exp | 2 +- gdb/testsuite/gdb.cp/m-data.exp | 2 +- gdb/testsuite/gdb.cp/m-static.exp | 2 +- gdb/testsuite/gdb.cp/main-cp.exp | 2 +- gdb/testsuite/gdb.cp/many-args.exp | 2 +- gdb/testsuite/gdb.cp/mb-ctor.exp | 2 +- gdb/testsuite/gdb.cp/mb-inline.exp | 2 +- gdb/testsuite/gdb.cp/mb-templates.exp | 2 +- gdb/testsuite/gdb.cp/member-name.exp | 2 +- gdb/testsuite/gdb.cp/member-ptr.exp | 2 +- gdb/testsuite/gdb.cp/meth-typedefs.exp | 2 +- gdb/testsuite/gdb.cp/method-call-in-c.exp | 2 +- gdb/testsuite/gdb.cp/method-ref-return.exp | 4 ++-- gdb/testsuite/gdb.cp/method.exp | 2 +- gdb/testsuite/gdb.cp/minsym-fallback.exp | 2 +- gdb/testsuite/gdb.cp/misc.exp | 2 +- gdb/testsuite/gdb.cp/namelessclass.exp | 4 ++-- gdb/testsuite/gdb.cp/namespace-enum.exp | 2 +- gdb/testsuite/gdb.cp/namespace-nested-import.exp | 2 +- gdb/testsuite/gdb.cp/namespace.exp | 2 +- gdb/testsuite/gdb.cp/nested-class-func-class.exp | 4 ++-- gdb/testsuite/gdb.cp/nested-types.exp | 2 +- gdb/testsuite/gdb.cp/nextoverthrow.exp | 4 ++-- gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 4 ++-- gdb/testsuite/gdb.cp/non-trivial-retval.exp | 4 ++-- gdb/testsuite/gdb.cp/noparam.exp | 2 +- gdb/testsuite/gdb.cp/nsalias.exp | 10 +++++----- gdb/testsuite/gdb.cp/nsdecl.exp | 2 +- gdb/testsuite/gdb.cp/nsimport.exp | 2 +- gdb/testsuite/gdb.cp/nsrecurs.exp | 2 +- gdb/testsuite/gdb.cp/nsstress.exp | 2 +- gdb/testsuite/gdb.cp/nsusing.exp | 2 +- gdb/testsuite/gdb.cp/operator.exp | 2 +- gdb/testsuite/gdb.cp/overload-const.exp | 2 +- gdb/testsuite/gdb.cp/overload.exp | 2 +- gdb/testsuite/gdb.cp/ovldbreak.exp | 2 +- gdb/testsuite/gdb.cp/ovsrch.exp | 2 +- gdb/testsuite/gdb.cp/paramless.exp | 2 +- gdb/testsuite/gdb.cp/paren-type.exp | 2 +- gdb/testsuite/gdb.cp/parse-lang.exp | 2 +- gdb/testsuite/gdb.cp/pass-by-ref-2.exp | 4 ++-- gdb/testsuite/gdb.cp/pass-by-ref.exp | 4 ++-- gdb/testsuite/gdb.cp/pointer-to-member.exp | 2 +- gdb/testsuite/gdb.cp/pr-1023.exp | 2 +- gdb/testsuite/gdb.cp/pr-1210.exp | 2 +- gdb/testsuite/gdb.cp/pr-574.exp | 2 +- gdb/testsuite/gdb.cp/pr10687.exp | 2 +- gdb/testsuite/gdb.cp/pr12028.exp | 2 +- gdb/testsuite/gdb.cp/pr17132.exp | 4 ++-- gdb/testsuite/gdb.cp/pr17494.exp | 4 ++-- gdb/testsuite/gdb.cp/pr9067.exp | 2 +- gdb/testsuite/gdb.cp/pr9167.exp | 2 +- gdb/testsuite/gdb.cp/pr9631.exp | 2 +- gdb/testsuite/gdb.cp/print-demangle.exp | 2 +- gdb/testsuite/gdb.cp/print-global-stub.exp | 2 +- gdb/testsuite/gdb.cp/print-method-args.exp | 2 +- gdb/testsuite/gdb.cp/printmethod.exp | 2 +- gdb/testsuite/gdb.cp/psmang.exp | 2 +- gdb/testsuite/gdb.cp/psymtab-parameter.exp | 2 +- gdb/testsuite/gdb.cp/ptype-cv-cp.exp | 2 +- gdb/testsuite/gdb.cp/ptype-flags.exp | 2 +- gdb/testsuite/gdb.cp/re-set-overloaded.exp | 2 +- gdb/testsuite/gdb.cp/readnow-language.exp | 2 +- gdb/testsuite/gdb.cp/ref-params.exp | 2 +- gdb/testsuite/gdb.cp/ref-types.exp | 2 +- gdb/testsuite/gdb.cp/rtti.exp | 2 +- gdb/testsuite/gdb.cp/rvalue-ref-casts.exp | 4 ++-- gdb/testsuite/gdb.cp/rvalue-ref-overload.exp | 4 ++-- gdb/testsuite/gdb.cp/rvalue-ref-params.exp | 2 +- gdb/testsuite/gdb.cp/rvalue-ref-types.exp | 6 +++--- gdb/testsuite/gdb.cp/save-bp-qualified.exp | 2 +- gdb/testsuite/gdb.cp/scope-err.exp | 2 +- gdb/testsuite/gdb.cp/shadow.exp | 2 +- gdb/testsuite/gdb.cp/static-method.exp | 2 +- gdb/testsuite/gdb.cp/static-print-quit.exp | 2 +- gdb/testsuite/gdb.cp/static-typedef-print.exp | 4 ++-- gdb/testsuite/gdb.cp/step-and-next-inline.exp | 2 +- gdb/testsuite/gdb.cp/stub-array-size.exp | 2 +- gdb/testsuite/gdb.cp/subtypes.exp | 2 +- gdb/testsuite/gdb.cp/temargs.exp | 4 ++-- gdb/testsuite/gdb.cp/templates.exp | 2 +- gdb/testsuite/gdb.cp/try_catch.exp | 2 +- gdb/testsuite/gdb.cp/typed-enum.exp | 2 +- gdb/testsuite/gdb.cp/typedef-base.exp | 4 ++-- gdb/testsuite/gdb.cp/typedef-operator.exp | 4 ++-- gdb/testsuite/gdb.cp/typeid.exp | 4 ++-- gdb/testsuite/gdb.cp/userdef.exp | 2 +- gdb/testsuite/gdb.cp/using-crash.exp | 2 +- gdb/testsuite/gdb.cp/var-tag.exp | 2 +- gdb/testsuite/gdb.cp/virtbase.exp | 2 +- gdb/testsuite/gdb.cp/virtbase2.exp | 2 +- gdb/testsuite/gdb.cp/virtfunc.exp | 2 +- gdb/testsuite/gdb.cp/virtfunc2.exp | 2 +- gdb/testsuite/gdb.cp/vla-cxx.exp | 4 ++-- gdb/testsuite/gdb.cp/watch-cp.exp | 2 +- 146 files changed, 190 insertions(+), 190 deletions(-) diff --git a/gdb/testsuite/gdb.cp/abstract-origin.exp b/gdb/testsuite/gdb.cp/abstract-origin.exp index f9df73d5fe85..5b7139527a08 100644 --- a/gdb/testsuite/gdb.cp/abstract-origin.exp +++ b/gdb/testsuite/gdb.cp/abstract-origin.exp @@ -16,11 +16,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "break-here"] diff --git a/gdb/testsuite/gdb.cp/align.exp b/gdb/testsuite/gdb.cp/align.exp index 6cf046b0cb72..03b981175194 100644 --- a/gdb/testsuite/gdb.cp/align.exp +++ b/gdb/testsuite/gdb.cp/align.exp @@ -139,7 +139,7 @@ standard_testfile $filename if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug nowarnings c++ additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/ambiguous.exp b/gdb/testsuite/gdb.cp/ambiguous.exp index 838fa95cbb1c..94ba6a6b7cac 100644 --- a/gdb/testsuite/gdb.cp/ambiguous.exp +++ b/gdb/testsuite/gdb.cp/ambiguous.exp @@ -33,7 +33,7 @@ if {[test_compiler_info {gcc-[0-9]-*}]} { if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ [list debug c++ $additional_flags]]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota2.exp index b3190fb3e252..466cab05b8ab 100644 --- a/gdb/testsuite/gdb.cp/annota2.exp +++ b/gdb/testsuite/gdb.cp/annota2.exp @@ -26,7 +26,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ nowarnings}]} { - return -1 + return } # This testcase cannot use runto_main because of the different prompt diff --git a/gdb/testsuite/gdb.cp/annota3.exp b/gdb/testsuite/gdb.cp/annota3.exp index a7016ee76bda..39a1399f95da 100644 --- a/gdb/testsuite/gdb.cp/annota3.exp +++ b/gdb/testsuite/gdb.cp/annota3.exp @@ -26,7 +26,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ nowarnings}]} { - return -1 + return } # This testcase cannot use runto_main because of the different prompt diff --git a/gdb/testsuite/gdb.cp/anon-ns.exp b/gdb/testsuite/gdb.cp/anon-ns.exp index 99f949cfc96c..50f77952bb3b 100644 --- a/gdb/testsuite/gdb.cp/anon-ns.exp +++ b/gdb/testsuite/gdb.cp/anon-ns.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc anon-ns2.cc if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {c++ debug}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/anon-union.exp b/gdb/testsuite/gdb.cp/anon-union.exp index 5b26f7a848da..def3c3df1095 100644 --- a/gdb/testsuite/gdb.cp/anon-union.exp +++ b/gdb/testsuite/gdb.cp/anon-union.exp @@ -28,7 +28,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/arg-reference.exp b/gdb/testsuite/gdb.cp/arg-reference.exp index b690c1376e60..1433ec3b3e49 100644 --- a/gdb/testsuite/gdb.cp/arg-reference.exp +++ b/gdb/testsuite/gdb.cp/arg-reference.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } gdb_test "ptype foo" "type = int \\\(Obj\\\)" "no false reference" diff --git a/gdb/testsuite/gdb.cp/baseenum.exp b/gdb/testsuite/gdb.cp/baseenum.exp index da7a436026d2..5bf9963645d4 100644 --- a/gdb/testsuite/gdb.cp/baseenum.exp +++ b/gdb/testsuite/gdb.cp/baseenum.exp @@ -18,11 +18,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "breakpoint 1" $srcfile] diff --git a/gdb/testsuite/gdb.cp/bool.exp b/gdb/testsuite/gdb.cp/bool.exp index 1cab03b73d0d..eb2946d8c725 100644 --- a/gdb/testsuite/gdb.cp/bool.exp +++ b/gdb/testsuite/gdb.cp/bool.exp @@ -26,7 +26,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } runto_main diff --git a/gdb/testsuite/gdb.cp/break-template-cast.exp b/gdb/testsuite/gdb.cp/break-template-cast.exp index 04ebff92489d..26cf9d387f3d 100644 --- a/gdb/testsuite/gdb.cp/break-template-cast.exp +++ b/gdb/testsuite/gdb.cp/break-template-cast.exp @@ -22,7 +22,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" $testfile "$srcfile"\ {debug c++}] } { - return -1 + return } gdb_test "break foo" \ diff --git a/gdb/testsuite/gdb.cp/breakpoint-locs.exp b/gdb/testsuite/gdb.cp/breakpoint-locs.exp index 2ab046d3be89..6a77ef26bdee 100644 --- a/gdb/testsuite/gdb.cp/breakpoint-locs.exp +++ b/gdb/testsuite/gdb.cp/breakpoint-locs.exp @@ -23,7 +23,7 @@ include_file breakpoint-locs.h if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2"\ {debug c++}] } { - return -1 + return } gdb_test "break N1::C1::baz" "\\(2 locations\\)" diff --git a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp index aaa2a531c819..5f99ab9a437d 100644 --- a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp +++ b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp @@ -32,12 +32,12 @@ standard_testfile .cc -lib.cc set libobj [standard_output_file libfoo.so] if {[build_executable "build shared library" $libobj $srcfile2 \ {debug c++ shlib}] != 0} { - return -1 + return } if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ [list debug c++ shlib=$libobj]]} { - return -1 + return } gdb_load_shlib $libobj @@ -49,7 +49,7 @@ gdb_test "info breakpoints" "" # Runto main, but don't delete all the breakpoints. if {![runto_main no-delete-breakpoints]} { - return -1 + return } # The breakpoint should now be showing in `foo` for real. diff --git a/gdb/testsuite/gdb.cp/breakpoint.exp b/gdb/testsuite/gdb.cp/breakpoint.exp index bb7b8bf5a510..936015e67095 100644 --- a/gdb/testsuite/gdb.cp/breakpoint.exp +++ b/gdb/testsuite/gdb.cp/breakpoint.exp @@ -26,7 +26,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc test_breakpoint {name} { diff --git a/gdb/testsuite/gdb.cp/bs15503.exp b/gdb/testsuite/gdb.cp/bs15503.exp index 3a1ec22b5a43..603cc0f1debb 100644 --- a/gdb/testsuite/gdb.cp/bs15503.exp +++ b/gdb/testsuite/gdb.cp/bs15503.exp @@ -22,7 +22,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/call-c.exp b/gdb/testsuite/gdb.cp/call-c.exp index bdbe42772397..b5f7fdb24bb1 100644 --- a/gdb/testsuite/gdb.cp/call-c.exp +++ b/gdb/testsuite/gdb.cp/call-c.exp @@ -24,7 +24,7 @@ if {[gdb_compile "$srcdir/$subdir/${srcfile2}" "${objfilec}" object {debug}] != || [gdb_compile "$srcdir/$subdir/${srcfile}" "${objfilecpp}" object {c++ debug}] != "" || [gdb_compile "${objfilecpp} ${objfilec}" "${binfile}" executable {c++ debug}] != ""} { untested "failed to compile" - return -1 + return } clean_restart ${::testfile} diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/gdb.cp/call-method-register.exp index d711cc9bd532..815c0e6a485f 100644 --- a/gdb/testsuite/gdb.cp/call-method-register.exp +++ b/gdb/testsuite/gdb.cp/call-method-register.exp @@ -32,7 +32,7 @@ lappend flags_nodebug nodebug lappend flags_nodebug c++ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags_debug]} { - return -1 + return } set asm_file [standard_output_file $srcfile2] @@ -105,11 +105,11 @@ Dwarf::assemble $asm_file { if { [prepare_for_testing "failed to prepare" ${testfile} \ [list $srcfile $asm_file] $::flags_nodebug] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "print global_var.yyy ()" \ diff --git a/gdb/testsuite/gdb.cp/casts.exp b/gdb/testsuite/gdb.cp/casts.exp index fd37368e1a88..67246ac7b5ca 100644 --- a/gdb/testsuite/gdb.cp/casts.exp +++ b/gdb/testsuite/gdb.cp/casts.exp @@ -35,7 +35,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } if {![runto_main]} { @@ -215,7 +215,7 @@ gdb_test "print &dynamic_cast (*vr) == vr" " = true" if {[prepare_for_testing "failed to prepare" ${testfile}03 $srcfile2 \ {debug c++ additional_flags=-std=c++03}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/chained-calls.exp b/gdb/testsuite/gdb.cp/chained-calls.exp index 4d7522a0bd1a..5c7b84d50b6e 100644 --- a/gdb/testsuite/gdb.cp/chained-calls.exp +++ b/gdb/testsuite/gdb.cp/chained-calls.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp index d8f1e7972250..705f51ac3e07 100644 --- a/gdb/testsuite/gdb.cp/class2.exp +++ b/gdb/testsuite/gdb.cp/class2.exp @@ -26,7 +26,7 @@ if { [gcc_major_version "clang-*" "c++"] > 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } # Start with "set print object off" and "set print symbol off". diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp index ea4b2033b830..71ce810adadf 100644 --- a/gdb/testsuite/gdb.cp/classes.exp +++ b/gdb/testsuite/gdb.cp/classes.exp @@ -34,7 +34,7 @@ if { [test_compiler_info "clang-*" "c++"] } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } # Test ptype of class objects. diff --git a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp index 7afda5fbe827..19653a4ccc9e 100644 --- a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp +++ b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp @@ -24,7 +24,7 @@ standard_testfile .cc # Do NOT compile with debug flag. if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++}]} { - return -1 + return } # Before setting the language, try to set a few simple breakpoints diff --git a/gdb/testsuite/gdb.cp/cold-clone.exp b/gdb/testsuite/gdb.cp/cold-clone.exp index 1fb7c2449af4..d2c69c504faa 100644 --- a/gdb/testsuite/gdb.cp/cold-clone.exp +++ b/gdb/testsuite/gdb.cp/cold-clone.exp @@ -22,7 +22,7 @@ lappend flags optimize=-O2 lappend_include_file flags $srcdir/lib/attributes.h if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } gdb_test_multiple "break foo" "" { diff --git a/gdb/testsuite/gdb.cp/constexpr-field.exp b/gdb/testsuite/gdb.cp/constexpr-field.exp index 3e8a7b985137..c50ea3ef5d94 100644 --- a/gdb/testsuite/gdb.cp/constexpr-field.exp +++ b/gdb/testsuite/gdb.cp/constexpr-field.exp @@ -22,7 +22,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {c++ debug additional_flags=-std=c++17}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp-relocate.exp index fb45313466b1..c42c67a95e75 100644 --- a/gdb/testsuite/gdb.cp/cp-relocate.exp +++ b/gdb/testsuite/gdb.cp/cp-relocate.exp @@ -112,7 +112,7 @@ gdb_test_multiple "info file" "info file" { if { $func1_sec == $func2_sec } { untested "cp-relocate.exp - template functions in same sections" - return -1 + return } # Now start a clean GDB, for add-symbol-file tests. diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/cpcompletion.exp index 555392b470ab..f767a8b7bc64 100644 --- a/gdb/testsuite/gdb.cp/cpcompletion.exp +++ b/gdb/testsuite/gdb.cp/cpcompletion.exp @@ -56,7 +56,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Tests below are about tab-completion, which doesn't work if readline @@ -64,7 +64,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { if { ![readline_is_used] } { untested "no tab completion support without readline" - return -1 + return } # Test that completion is restricted by class name (all methods) diff --git a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl index 085dfdd0678a..c9646755f0ac 100644 --- a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl +++ b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl @@ -706,7 +706,7 @@ standard_testfile cpexprs.cc set flags "$flags debug c++" if {[prepare_for_testing "failed to prepare" $testfile $srcfile "$flags"]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/cplabel.exp b/gdb/testsuite/gdb.cp/cplabel.exp index 0bb22cd96ad0..e0301eb3628c 100644 --- a/gdb/testsuite/gdb.cp/cplabel.exp +++ b/gdb/testsuite/gdb.cp/cplabel.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } set methods {"bar" "baz"} diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp index b8ce5d7bdd02..62b149c9f357 100644 --- a/gdb/testsuite/gdb.cp/cplusfuncs.exp +++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp @@ -21,7 +21,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/ctti.exp b/gdb/testsuite/gdb.cp/ctti.exp index e328b7c59c41..5c2be5de57b8 100644 --- a/gdb/testsuite/gdb.cp/ctti.exp +++ b/gdb/testsuite/gdb.cp/ctti.exp @@ -27,7 +27,7 @@ standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/derivation.exp index 34fbf3c250e1..3b42c85a6272 100644 --- a/gdb/testsuite/gdb.cp/derivation.exp +++ b/gdb/testsuite/gdb.cp/derivation.exp @@ -36,7 +36,7 @@ standard_testfile derivation.cc derivation2.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } # Check inheritance of typedefs. diff --git a/gdb/testsuite/gdb.cp/destrprint.exp b/gdb/testsuite/gdb.cp/destrprint.exp index b0f1087a38df..f20255a4c4f7 100644 --- a/gdb/testsuite/gdb.cp/destrprint.exp +++ b/gdb/testsuite/gdb.cp/destrprint.exp @@ -16,11 +16,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/disasm-func-name.exp b/gdb/testsuite/gdb.cp/disasm-func-name.exp index 77b872fe1ade..d4b6586dbded 100644 --- a/gdb/testsuite/gdb.cp/disasm-func-name.exp +++ b/gdb/testsuite/gdb.cp/disasm-func-name.exp @@ -24,7 +24,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile \ $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/dispcxx.exp b/gdb/testsuite/gdb.cp/dispcxx.exp index 0af655ad0a50..c20dbadd65ce 100644 --- a/gdb/testsuite/gdb.cp/dispcxx.exp +++ b/gdb/testsuite/gdb.cp/dispcxx.exp @@ -18,7 +18,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/empty-enum.exp b/gdb/testsuite/gdb.cp/empty-enum.exp index 437dd0ad0868..e2b82d386f34 100644 --- a/gdb/testsuite/gdb.cp/empty-enum.exp +++ b/gdb/testsuite/gdb.cp/empty-enum.exp @@ -35,11 +35,11 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint "breakpt" diff --git a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp index f6d3f0cb9717..36ab2f659697 100644 --- a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp +++ b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp @@ -26,11 +26,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto 'marker']} { - return -1 + return } # Returns a buffer corresponding to what GDB replies when asking for diff --git a/gdb/testsuite/gdb.cp/enum-class.exp b/gdb/testsuite/gdb.cp/enum-class.exp index b7858719f1e5..26a496972fa6 100644 --- a/gdb/testsuite/gdb.cp/enum-class.exp +++ b/gdb/testsuite/gdb.cp/enum-class.exp @@ -21,11 +21,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "ptype E1" \ diff --git a/gdb/testsuite/gdb.cp/exception.exp b/gdb/testsuite/gdb.cp/exception.exp index 987fa799c56f..b7bba4c71d42 100644 --- a/gdb/testsuite/gdb.cp/exception.exp +++ b/gdb/testsuite/gdb.cp/exception.exp @@ -35,7 +35,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Set a catch catchpoint diff --git a/gdb/testsuite/gdb.cp/exceptprint.exp b/gdb/testsuite/gdb.cp/exceptprint.exp index b940f66f9a89..d0e0a07bfb90 100644 --- a/gdb/testsuite/gdb.cp/exceptprint.exp +++ b/gdb/testsuite/gdb.cp/exceptprint.exp @@ -18,16 +18,16 @@ standard_testfile .cc require allow_cplus_tests if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } if {[skip_libstdcxx_probe_tests]} { untested "could not find libstdc++ stap probe" - return -1 + return } proc do_continue_to_catchpoint {name} { @@ -71,7 +71,7 @@ do_exceptprint_tests "reference to struct" "{mv = 77}" delete_breakpoints if {![runto_main]} { - return -1 + return } with_test_prefix "2nd run" { diff --git a/gdb/testsuite/gdb.cp/expand-sals.exp b/gdb/testsuite/gdb.cp/expand-sals.exp index dad11bbd9b0e..187073ec86eb 100644 --- a/gdb/testsuite/gdb.cp/expand-sals.exp +++ b/gdb/testsuite/gdb.cp/expand-sals.exp @@ -17,10 +17,10 @@ require allow_cplus_tests set srcfile expand-sals.cc if { [prepare_for_testing "failed to prepare" expand-sals $srcfile {debug c++}] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "func-line"] diff --git a/gdb/testsuite/gdb.cp/extern-c.exp b/gdb/testsuite/gdb.cp/extern-c.exp index 67a2ced08072..ce77afae1e47 100644 --- a/gdb/testsuite/gdb.cp/extern-c.exp +++ b/gdb/testsuite/gdb.cp/extern-c.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } runto_main diff --git a/gdb/testsuite/gdb.cp/filename.exp b/gdb/testsuite/gdb.cp/filename.exp index f9f6007ccc79..72fbbcfcebee 100644 --- a/gdb/testsuite/gdb.cp/filename.exp +++ b/gdb/testsuite/gdb.cp/filename.exp @@ -20,7 +20,7 @@ standard_testfile .cc include_file includefile if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/formatted-ref.exp b/gdb/testsuite/gdb.cp/formatted-ref.exp index 354c716a6c07..bc2ac9d36b24 100644 --- a/gdb/testsuite/gdb.cp/formatted-ref.exp +++ b/gdb/testsuite/gdb.cp/formatted-ref.exp @@ -33,7 +33,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc get_address { var } { diff --git a/gdb/testsuite/gdb.cp/gdb1355.exp b/gdb/testsuite/gdb.cp/gdb1355.exp index 900f9029c259..77e845b468d6 100644 --- a/gdb/testsuite/gdb.cp/gdb1355.exp +++ b/gdb/testsuite/gdb.cp/gdb1355.exp @@ -30,7 +30,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/gdb2384.exp b/gdb/testsuite/gdb.cp/gdb2384.exp index 0a5b3088fa0f..d0c96aeaab32 100644 --- a/gdb/testsuite/gdb.cp/gdb2384.exp +++ b/gdb/testsuite/gdb.cp/gdb2384.exp @@ -32,7 +32,7 @@ set sofile [standard_output_file gdb2384-base.so] if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != "" || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} { untested "failed to compile" - return -1 + return } clean_restart ${::testfile} @@ -40,7 +40,7 @@ gdb_load_shlib ${sofile} if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "First breakpoint"] diff --git a/gdb/testsuite/gdb.cp/gdb2495.exp b/gdb/testsuite/gdb.cp/gdb2495.exp index c3bac7a9ce46..aa5a2a16e437 100644 --- a/gdb/testsuite/gdb.cp/gdb2495.exp +++ b/gdb/testsuite/gdb.cp/gdb2495.exp @@ -42,7 +42,7 @@ standard_testfile .cc require {!target_info exists gdb,cannot_call_functions} if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/hang.exp b/gdb/testsuite/gdb.cp/hang.exp index f547f1bb1590..bd6fbd24ae7c 100644 --- a/gdb/testsuite/gdb.cp/hang.exp +++ b/gdb/testsuite/gdb.cp/hang.exp @@ -22,7 +22,7 @@ include_file hang.H if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3] {debug c++}]} { - return -1 + return } # As of May 1, 2002, GDB hangs trying to read the debug info for the diff --git a/gdb/testsuite/gdb.cp/impl-this.exp b/gdb/testsuite/gdb.cp/impl-this.exp index 213d41e664f7..a8979f383c79 100644 --- a/gdb/testsuite/gdb.cp/impl-this.exp +++ b/gdb/testsuite/gdb.cp/impl-this.exp @@ -23,7 +23,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set gcc_used [test_compiler_info gcc-*-*] diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.exp b/gdb/testsuite/gdb.cp/infcall-dlopen.exp index 50ccf608ef66..b69c9f58cce0 100644 --- a/gdb/testsuite/gdb.cp/infcall-dlopen.exp +++ b/gdb/testsuite/gdb.cp/infcall-dlopen.exp @@ -22,13 +22,13 @@ set lib_dlopen [shlib_target_file ${testfile}.so] # Use completely arbitrary file for $libfile source. if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile2} ${libfile} {debug c++}] != "" || [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++ shlib_load}] } { - return -1 + return } gdb_load_shlib $libfile if { ![runto_main] } { - return -1 + return } for {set i 0} {$i < 10} {incr i} { diff --git a/gdb/testsuite/gdb.cp/inherit.exp b/gdb/testsuite/gdb.cp/inherit.exp index 5d7d12c40e9c..dd2ea1a7afcf 100644 --- a/gdb/testsuite/gdb.cp/inherit.exp +++ b/gdb/testsuite/gdb.cp/inherit.exp @@ -27,7 +27,7 @@ load_lib "cp-support.exp" standard_testfile misc.cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Single inheritance, print type definitions. diff --git a/gdb/testsuite/gdb.cp/iostream.exp b/gdb/testsuite/gdb.cp/iostream.exp index 39ccdb4087dc..b23e81115322 100644 --- a/gdb/testsuite/gdb.cp/iostream.exp +++ b/gdb/testsuite/gdb.cp/iostream.exp @@ -21,7 +21,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp index 73527687ff85..cf072ba6c722 100644 --- a/gdb/testsuite/gdb.cp/local.exp +++ b/gdb/testsuite/gdb.cp/local.exp @@ -32,7 +32,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/m-data.exp b/gdb/testsuite/gdb.cp/m-data.exp index 1d1c94e107da..125c7e0483ad 100644 --- a/gdb/testsuite/gdb.cp/m-data.exp +++ b/gdb/testsuite/gdb.cp/m-data.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-static.exp index 939e1880d64f..a898bc934e54 100644 --- a/gdb/testsuite/gdb.cp/m-static.exp +++ b/gdb/testsuite/gdb.cp/m-static.exp @@ -37,7 +37,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] $flags]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/main-cp.exp b/gdb/testsuite/gdb.cp/main-cp.exp index bdca417e0b50..42175cd5ec31 100644 --- a/gdb/testsuite/gdb.cp/main-cp.exp +++ b/gdb/testsuite/gdb.cp/main-cp.exp @@ -25,7 +25,7 @@ lappend opts debug lappend opts c++ if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } { - return -1 + return } require {string eq [have_index $binfile] ""} diff --git a/gdb/testsuite/gdb.cp/many-args.exp b/gdb/testsuite/gdb.cp/many-args.exp index 49b5e28e976f..a2b19b0edf58 100644 --- a/gdb/testsuite/gdb.cp/many-args.exp +++ b/gdb/testsuite/gdb.cp/many-args.exp @@ -24,7 +24,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/mb-ctor.exp b/gdb/testsuite/gdb.cp/mb-ctor.exp index 925c215f9d82..67fb8f1afe40 100644 --- a/gdb/testsuite/gdb.cp/mb-ctor.exp +++ b/gdb/testsuite/gdb.cp/mb-ctor.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {[test_compiler_info {clang-*-*} c++]} { diff --git a/gdb/testsuite/gdb.cp/mb-inline.exp b/gdb/testsuite/gdb.cp/mb-inline.exp index 4bb95547ccf2..ff1fb4a28859 100644 --- a/gdb/testsuite/gdb.cp/mb-inline.exp +++ b/gdb/testsuite/gdb.cp/mb-inline.exp @@ -26,7 +26,7 @@ include_file $hdrfile if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } set bp_location [gdb_get_line_number "set breakpoint here" $hdrfile] diff --git a/gdb/testsuite/gdb.cp/mb-templates.exp b/gdb/testsuite/gdb.cp/mb-templates.exp index c9b78e8a16c4..f79b1cc26791 100644 --- a/gdb/testsuite/gdb.cp/mb-templates.exp +++ b/gdb/testsuite/gdb.cp/mb-templates.exp @@ -22,7 +22,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set bp_location [gdb_get_line_number "set breakpoint here"] diff --git a/gdb/testsuite/gdb.cp/member-name.exp b/gdb/testsuite/gdb.cp/member-name.exp index ca414c9915f2..95f628076b7b 100644 --- a/gdb/testsuite/gdb.cp/member-name.exp +++ b/gdb/testsuite/gdb.cp/member-name.exp @@ -18,7 +18,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/member-ptr.exp b/gdb/testsuite/gdb.cp/member-ptr.exp index f7aa475d4f81..055b1d4e7095 100644 --- a/gdb/testsuite/gdb.cp/member-ptr.exp +++ b/gdb/testsuite/gdb.cp/member-ptr.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/meth-typedefs.exp b/gdb/testsuite/gdb.cp/meth-typedefs.exp index 898bdd499e76..ba0fc6d9cbb7 100644 --- a/gdb/testsuite/gdb.cp/meth-typedefs.exp +++ b/gdb/testsuite/gdb.cp/meth-typedefs.exp @@ -37,7 +37,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {c++ debug additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/method-call-in-c.exp b/gdb/testsuite/gdb.cp/method-call-in-c.exp index a8e62f816a3b..7b050996d7de 100644 --- a/gdb/testsuite/gdb.cp/method-call-in-c.exp +++ b/gdb/testsuite/gdb.cp/method-call-in-c.exp @@ -26,7 +26,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/method-ref-return.exp b/gdb/testsuite/gdb.cp/method-ref-return.exp index 8e082f36aa2c..1e5e0619b015 100644 --- a/gdb/testsuite/gdb.cp/method-ref-return.exp +++ b/gdb/testsuite/gdb.cp/method-ref-return.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # Set a breakpoint after the bar object is created and the reference is obtained. diff --git a/gdb/testsuite/gdb.cp/method.exp b/gdb/testsuite/gdb.cp/method.exp index d890be1df9e6..e0946651a6e4 100644 --- a/gdb/testsuite/gdb.cp/method.exp +++ b/gdb/testsuite/gdb.cp/method.exp @@ -37,7 +37,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/minsym-fallback.exp b/gdb/testsuite/gdb.cp/minsym-fallback.exp index 46427d6905c8..b42710278144 100644 --- a/gdb/testsuite/gdb.cp/minsym-fallback.exp +++ b/gdb/testsuite/gdb.cp/minsym-fallback.exp @@ -37,7 +37,7 @@ if {[gdb_compile $srcdir/$subdir/$srcfile $objfile object $nodebug_flags] != "" || [gdb_compile $srcdir/$subdir/$srcfile2 $objmainfile object $debug_flags] != "" || [gdb_compile "$objfile $objmainfile" $binfile executable $debug_flags] != ""} { untested "failed to compile" - return -1 + return } clean_restart ${executable} diff --git a/gdb/testsuite/gdb.cp/misc.exp b/gdb/testsuite/gdb.cp/misc.exp index 974ad1a550c1..e844ab9244e3 100644 --- a/gdb/testsuite/gdb.cp/misc.exp +++ b/gdb/testsuite/gdb.cp/misc.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/namelessclass.exp b/gdb/testsuite/gdb.cp/namelessclass.exp index a247fcebb7bc..e3be4cf666c8 100644 --- a/gdb/testsuite/gdb.cp/namelessclass.exp +++ b/gdb/testsuite/gdb.cp/namelessclass.exp @@ -28,11 +28,11 @@ standard_testfile .S set csrcfile "${testfile}.cc" if {[prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # Set a breakpoint in the lambda in A::doit (). */ diff --git a/gdb/testsuite/gdb.cp/namespace-enum.exp b/gdb/testsuite/gdb.cp/namespace-enum.exp index cc9c274ad497..8ccdd320c738 100644 --- a/gdb/testsuite/gdb.cp/namespace-enum.exp +++ b/gdb/testsuite/gdb.cp/namespace-enum.exp @@ -17,7 +17,7 @@ standard_testfile .cc namespace-enum-main.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } gdb_test "print foo::B::B_B" "`foo::B' is not defined as an aggregate type." diff --git a/gdb/testsuite/gdb.cp/namespace-nested-import.exp b/gdb/testsuite/gdb.cp/namespace-nested-import.exp index 1ec31c1903e3..b2fb2d914cbb 100644 --- a/gdb/testsuite/gdb.cp/namespace-nested-import.exp +++ b/gdb/testsuite/gdb.cp/namespace-nested-import.exp @@ -17,7 +17,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/namespace.exp index 6c5dd667060c..b39b2a164fc3 100644 --- a/gdb/testsuite/gdb.cp/namespace.exp +++ b/gdb/testsuite/gdb.cp/namespace.exp @@ -38,7 +38,7 @@ if {[test_compiler_info {gcc-[0-3]-*}] if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } gdb_test "show lang" "auto; currently c\\+\\+.*" diff --git a/gdb/testsuite/gdb.cp/nested-class-func-class.exp b/gdb/testsuite/gdb.cp/nested-class-func-class.exp index f2d6f317b144..64b2ae8343c0 100644 --- a/gdb/testsuite/gdb.cp/nested-class-func-class.exp +++ b/gdb/testsuite/gdb.cp/nested-class-func-class.exp @@ -22,11 +22,11 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "BP 1"] diff --git a/gdb/testsuite/gdb.cp/nested-types.exp b/gdb/testsuite/gdb.cp/nested-types.exp index e0a9d1635824..9806bb6d5c89 100644 --- a/gdb/testsuite/gdb.cp/nested-types.exp +++ b/gdb/testsuite/gdb.cp/nested-types.exp @@ -27,7 +27,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++}]} { - return -1 + return } # Build the node given by ID (a number representing the struct S[ID] in diff --git a/gdb/testsuite/gdb.cp/nextoverthrow.exp b/gdb/testsuite/gdb.cp/nextoverthrow.exp index 2f34795d201b..2dbaae128694 100644 --- a/gdb/testsuite/gdb.cp/nextoverthrow.exp +++ b/gdb/testsuite/gdb.cp/nextoverthrow.exp @@ -19,7 +19,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { @@ -28,7 +28,7 @@ if {![runto_main]} { if {![skip_unwinder_tests]} { unsupported "nextoverthrow.exp could not find _Unwind_DebugHook" - return -1 + return } # Set a temporary breakpoint and then continue to it. diff --git a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp index 202e1f0d0f1b..14e42a2e361a 100644 --- a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp +++ b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp @@ -18,7 +18,7 @@ standard_testfile exceptprint.cc require allow_cplus_tests if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # This tests that $_exception gives an error when the systemtap probes @@ -26,7 +26,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { gdb_test "maint ignore-probes libstdcxx .*" ".*OBJNAME: ''" if {![runto_main]} { - return -1 + return } gdb_test "catch throw" "Catchpoint $decimal \\(throw\\)" \ diff --git a/gdb/testsuite/gdb.cp/non-trivial-retval.exp b/gdb/testsuite/gdb.cp/non-trivial-retval.exp index 0b70d3546e97..f5c32dca079d 100644 --- a/gdb/testsuite/gdb.cp/non-trivial-retval.exp +++ b/gdb/testsuite/gdb.cp/non-trivial-retval.exp @@ -37,11 +37,11 @@ if {[have_fvar_tracking]} { if {[prepare_for_testing "failed to prepare" $testfile $srcfile [list debug c++ $additional_flags]]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/noparam.exp b/gdb/testsuite/gdb.cp/noparam.exp index 1607d64f8eee..8ce8becd91b9 100644 --- a/gdb/testsuite/gdb.cp/noparam.exp +++ b/gdb/testsuite/gdb.cp/noparam.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . if { [prepare_for_testing "failed to prepare" "noparam" "noparam.cc" {debug c++}] } { - return -1 + return } # Check if GDB does not crash. diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalias.exp index e384d8d77eb2..459efbf12d08 100644 --- a/gdb/testsuite/gdb.cp/nsalias.exp +++ b/gdb/testsuite/gdb.cp/nsalias.exp @@ -170,16 +170,16 @@ Dwarf::assemble $asm_file { if {[gdb_compile $srcdir/$subdir/$srcfile ${binfile}1.o \ object {c++ debug}] != ""} { - return -1 + return } if {[gdb_compile $asm_file ${binfile}2.o object {nodebug}] != ""} { - return -1 + return } if {[gdb_compile [list ${binfile}1.o ${binfile}2.o] \ $binfile executable {c++}] != ""} { - return -1 + return } clean_restart $testfile @@ -304,12 +304,12 @@ set the_dwarf [format { Dwarf::assemble $asm_file $the_dwarf if {[gdb_compile $asm_file ${binfile}3.o object {nodebug}] != ""} { - return -1 + return } if {[gdb_compile [list ${binfile}1.o ${binfile}3.o] \ ${binfile}-r executable {c++}] != ""} { - return -1 + return } clean_restart diff --git a/gdb/testsuite/gdb.cp/nsdecl.exp b/gdb/testsuite/gdb.cp/nsdecl.exp index 72d20b618dc6..e068f419db89 100644 --- a/gdb/testsuite/gdb.cp/nsdecl.exp +++ b/gdb/testsuite/gdb.cp/nsdecl.exp @@ -19,7 +19,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/nsimport.exp b/gdb/testsuite/gdb.cp/nsimport.exp index bab4701f16fa..2ac4c0b4d5bd 100644 --- a/gdb/testsuite/gdb.cp/nsimport.exp +++ b/gdb/testsuite/gdb.cp/nsimport.exp @@ -20,7 +20,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/nsrecurs.exp b/gdb/testsuite/gdb.cp/nsrecurs.exp index 220fe897387f..58d90420c820 100644 --- a/gdb/testsuite/gdb.cp/nsrecurs.exp +++ b/gdb/testsuite/gdb.cp/nsrecurs.exp @@ -17,7 +17,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/nsstress.exp b/gdb/testsuite/gdb.cp/nsstress.exp index 872bf62fd6e3..eebfaf30fef6 100644 --- a/gdb/testsuite/gdb.cp/nsstress.exp +++ b/gdb/testsuite/gdb.cp/nsstress.exp @@ -19,7 +19,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/nsusing.exp b/gdb/testsuite/gdb.cp/nsusing.exp index d76676fda9e1..7b1d3e5283a9 100644 --- a/gdb/testsuite/gdb.cp/nsusing.exp +++ b/gdb/testsuite/gdb.cp/nsusing.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/operator.exp b/gdb/testsuite/gdb.cp/operator.exp index 15dfee5a9fe1..1e22f8f74bff 100644 --- a/gdb/testsuite/gdb.cp/operator.exp +++ b/gdb/testsuite/gdb.cp/operator.exp @@ -17,7 +17,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ {debug c++ additional_flags=-Wno-unused-comparison}] } { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/overload-const.exp b/gdb/testsuite/gdb.cp/overload-const.exp index a036aee6a6c8..442617848587 100644 --- a/gdb/testsuite/gdb.cp/overload-const.exp +++ b/gdb/testsuite/gdb.cp/overload-const.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $testfile.cc {c++ debug}]} { - return -1 + return } gdb_test_no_output "set language c++" diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overload.exp index 5d586b19e244..9c0149bdfe05 100644 --- a/gdb/testsuite/gdb.cp/overload.exp +++ b/gdb/testsuite/gdb.cp/overload.exp @@ -29,7 +29,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Set it up at a breakpoint so we can play with the variable values. diff --git a/gdb/testsuite/gdb.cp/ovldbreak.exp b/gdb/testsuite/gdb.cp/ovldbreak.exp index a4e853e2986e..dce7d3b414b3 100644 --- a/gdb/testsuite/gdb.cp/ovldbreak.exp +++ b/gdb/testsuite/gdb.cp/ovldbreak.exp @@ -33,7 +33,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # set it up at a breakpoint so we can play with the variable values diff --git a/gdb/testsuite/gdb.cp/ovsrch.exp b/gdb/testsuite/gdb.cp/ovsrch.exp index 4b8392395513..5fccdb43d4db 100644 --- a/gdb/testsuite/gdb.cp/ovsrch.exp +++ b/gdb/testsuite/gdb.cp/ovsrch.exp @@ -61,7 +61,7 @@ include_file ovsrch.h if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {c++ debug}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/paramless.exp b/gdb/testsuite/gdb.cp/paramless.exp index 65f4a461f6b7..4c9b6a8b8bdc 100644 --- a/gdb/testsuite/gdb.cp/paramless.exp +++ b/gdb/testsuite/gdb.cp/paramless.exp @@ -27,7 +27,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } foreach ordinary {"outer::fn" "outer::fn" "toplev"} { diff --git a/gdb/testsuite/gdb.cp/paren-type.exp b/gdb/testsuite/gdb.cp/paren-type.exp index fef63979cff7..16df250c61bb 100644 --- a/gdb/testsuite/gdb.cp/paren-type.exp +++ b/gdb/testsuite/gdb.cp/paren-type.exp @@ -16,7 +16,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${testfile}.cc {c++ debug}] } { - return -1 + return } gdb_test_no_output "set breakpoint pending off" diff --git a/gdb/testsuite/gdb.cp/parse-lang.exp b/gdb/testsuite/gdb.cp/parse-lang.exp index 04504a091b0b..0b1d2b6bcf1a 100644 --- a/gdb/testsuite/gdb.cp/parse-lang.exp +++ b/gdb/testsuite/gdb.cp/parse-lang.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Place the breakpoint before inferior gets started. Then the breakpoint diff --git a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp index e4c56ee2b7ec..3d7046359010 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp @@ -31,11 +31,11 @@ standard_testfile .cc set options {debug c++ additional_flags=-std=c++11} if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # GCC version <= 6 and Clang do not emit DW_AT_defaulted and DW_AT_deleted. diff --git a/gdb/testsuite/gdb.cp/pass-by-ref.exp b/gdb/testsuite/gdb.cp/pass-by-ref.exp index fde95d4d0a4e..66bc4b356582 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref.exp @@ -336,11 +336,11 @@ gdb_produce_source $srcfile $program set options {debug c++ additional_flags=-std=c++11} if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} { - return -1 + return } if {![runto_main]} { - return -1 + return } set bp_location [gdb_get_line_number "stop here"] diff --git a/gdb/testsuite/gdb.cp/pointer-to-member.exp b/gdb/testsuite/gdb.cp/pointer-to-member.exp index 5370cdbed18c..d2d04b27ae27 100644 --- a/gdb/testsuite/gdb.cp/pointer-to-member.exp +++ b/gdb/testsuite/gdb.cp/pointer-to-member.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } gdb_test "print ptm" " = &A::i" diff --git a/gdb/testsuite/gdb.cp/pr-1023.exp b/gdb/testsuite/gdb.cp/pr-1023.exp index 5e15b649c777..e524e88bb39c 100644 --- a/gdb/testsuite/gdb.cp/pr-1023.exp +++ b/gdb/testsuite/gdb.cp/pr-1023.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr-1210.exp b/gdb/testsuite/gdb.cp/pr-1210.exp index cf42f58b228e..c215d0f1a918 100644 --- a/gdb/testsuite/gdb.cp/pr-1210.exp +++ b/gdb/testsuite/gdb.cp/pr-1210.exp @@ -26,7 +26,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr-574.exp b/gdb/testsuite/gdb.cp/pr-574.exp index 1952463063fe..4312eebb0677 100644 --- a/gdb/testsuite/gdb.cp/pr-574.exp +++ b/gdb/testsuite/gdb.cp/pr-574.exp @@ -35,7 +35,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr10687.exp b/gdb/testsuite/gdb.cp/pr10687.exp index b27de9720887..c2063f975ae3 100644 --- a/gdb/testsuite/gdb.cp/pr10687.exp +++ b/gdb/testsuite/gdb.cp/pr10687.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr12028.exp b/gdb/testsuite/gdb.cp/pr12028.exp index b656a88975d5..f4e0aefb0d46 100644 --- a/gdb/testsuite/gdb.cp/pr12028.exp +++ b/gdb/testsuite/gdb.cp/pr12028.exp @@ -16,7 +16,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/pr17132.exp b/gdb/testsuite/gdb.cp/pr17132.exp index 3492425534a4..06d329c81fd7 100644 --- a/gdb/testsuite/gdb.cp/pr17132.exp +++ b/gdb/testsuite/gdb.cp/pr17132.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/pr17494.exp b/gdb/testsuite/gdb.cp/pr17494.exp index 33bc4831239f..ab23e1133823 100644 --- a/gdb/testsuite/gdb.cp/pr17494.exp +++ b/gdb/testsuite/gdb.cp/pr17494.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/pr9067.exp b/gdb/testsuite/gdb.cp/pr9067.exp index 43f4aa75796f..043690123f88 100644 --- a/gdb/testsuite/gdb.cp/pr9067.exp +++ b/gdb/testsuite/gdb.cp/pr9067.exp @@ -22,7 +22,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr9167.exp b/gdb/testsuite/gdb.cp/pr9167.exp index d1ceb6a4b9a1..8ae4356a6dad 100644 --- a/gdb/testsuite/gdb.cp/pr9167.exp +++ b/gdb/testsuite/gdb.cp/pr9167.exp @@ -22,7 +22,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr9631.exp b/gdb/testsuite/gdb.cp/pr9631.exp index f0b4fb5dc220..71cdda50d985 100644 --- a/gdb/testsuite/gdb.cp/pr9631.exp +++ b/gdb/testsuite/gdb.cp/pr9631.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/print-demangle.exp b/gdb/testsuite/gdb.cp/print-demangle.exp index 98c0167d42dd..9065adc3eac4 100644 --- a/gdb/testsuite/gdb.cp/print-demangle.exp +++ b/gdb/testsuite/gdb.cp/print-demangle.exp @@ -18,7 +18,7 @@ require allow_cplus_tests standard_testfile bool.cc if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { - return -1 + return } runto_main diff --git a/gdb/testsuite/gdb.cp/print-global-stub.exp b/gdb/testsuite/gdb.cp/print-global-stub.exp index df29bb61ee93..f82df5931da3 100644 --- a/gdb/testsuite/gdb.cp/print-global-stub.exp +++ b/gdb/testsuite/gdb.cp/print-global-stub.exp @@ -25,7 +25,7 @@ set binfile [standard_output_file $testfile] if { [gdb_compile $srcdir/$subdir/$srcfile $binfile object \ {c++ debug}] != "" } { untested "failed to compile" - return -1 + return } clean_restart $testfile diff --git a/gdb/testsuite/gdb.cp/print-method-args.exp b/gdb/testsuite/gdb.cp/print-method-args.exp index dd9cb8be748b..17f4204c44a8 100644 --- a/gdb/testsuite/gdb.cp/print-method-args.exp +++ b/gdb/testsuite/gdb.cp/print-method-args.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set re \ diff --git a/gdb/testsuite/gdb.cp/printmethod.exp b/gdb/testsuite/gdb.cp/printmethod.exp index bad147b874d6..fdc1c91bf232 100644 --- a/gdb/testsuite/gdb.cp/printmethod.exp +++ b/gdb/testsuite/gdb.cp/printmethod.exp @@ -28,7 +28,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/psmang.exp b/gdb/testsuite/gdb.cp/psmang.exp index bd51b8b03a34..d29b51f867eb 100644 --- a/gdb/testsuite/gdb.cp/psmang.exp +++ b/gdb/testsuite/gdb.cp/psmang.exp @@ -182,7 +182,7 @@ standard_testfile psmang1.cc psmang2.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } gdb_test "break s::method1" "Breakpoint .* at .*: file .*psmang1.cc.*" diff --git a/gdb/testsuite/gdb.cp/psymtab-parameter.exp b/gdb/testsuite/gdb.cp/psymtab-parameter.exp index 9412945fb099..aac95195922e 100644 --- a/gdb/testsuite/gdb.cp/psymtab-parameter.exp +++ b/gdb/testsuite/gdb.cp/psymtab-parameter.exp @@ -19,7 +19,7 @@ standard_testfile .cc if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}.x" object {debug c++}] != "" } { untested "failed to compile" - return -1 + return } clean_restart $testfile.x diff --git a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp index c0129a71f55b..bfc6e176cc17 100644 --- a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp +++ b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } { - return -1 + return } gdb_test "whatis v_my_int" "type = my_int" diff --git a/gdb/testsuite/gdb.cp/ptype-flags.exp b/gdb/testsuite/gdb.cp/ptype-flags.exp index c97c8b436de1..4530f99a50cf 100644 --- a/gdb/testsuite/gdb.cp/ptype-flags.exp +++ b/gdb/testsuite/gdb.cp/ptype-flags.exp @@ -22,7 +22,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/re-set-overloaded.exp b/gdb/testsuite/gdb.cp/re-set-overloaded.exp index d63be344252d..e5492c67c6ed 100644 --- a/gdb/testsuite/gdb.cp/re-set-overloaded.exp +++ b/gdb/testsuite/gdb.cp/re-set-overloaded.exp @@ -22,7 +22,7 @@ set sofile [standard_output_file ${testfile}.so] if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != "" || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} { untested "failed to compile" - return -1 + return } clean_restart $testfile diff --git a/gdb/testsuite/gdb.cp/readnow-language.exp b/gdb/testsuite/gdb.cp/readnow-language.exp index 73199bf15a15..fb4e62805397 100644 --- a/gdb/testsuite/gdb.cp/readnow-language.exp +++ b/gdb/testsuite/gdb.cp/readnow-language.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[build_executable ${testfile}.exp $testfile ${testfile}.cc {c++ debug}] == -1} { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.cp/ref-params.exp b/gdb/testsuite/gdb.cp/ref-params.exp index 31144fcba213..0238d938dc14 100644 --- a/gdb/testsuite/gdb.cp/ref-params.exp +++ b/gdb/testsuite/gdb.cp/ref-params.exp @@ -25,7 +25,7 @@ require allow_cplus_tests standard_testfile .cc if {[build_executable $testfile.exp $testfile $srcfile {debug c++}] == -1} { - return -1 + return } proc gdb_start_again { text } { diff --git a/gdb/testsuite/gdb.cp/ref-types.exp b/gdb/testsuite/gdb.cp/ref-types.exp index d56d10ea4bb4..b55b6ffe7f6f 100644 --- a/gdb/testsuite/gdb.cp/ref-types.exp +++ b/gdb/testsuite/gdb.cp/ref-types.exp @@ -25,7 +25,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/rtti.exp b/gdb/testsuite/gdb.cp/rtti.exp index b694ab935e34..7fe140c5c58e 100644 --- a/gdb/testsuite/gdb.cp/rtti.exp +++ b/gdb/testsuite/gdb.cp/rtti.exp @@ -38,7 +38,7 @@ include_file rtti.h if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp index a73708d92112..360037912186 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp @@ -23,11 +23,11 @@ standard_testfile .cc if {[prepare_for_testing $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # Prevent symbol on address 0x0 being printed. diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp index b9da32c244e4..6083606567a0 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp @@ -26,14 +26,14 @@ standard_testfile .cc if {[prepare_for_testing $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}]} { - return -1 + return } # Set it up at a breakpoint so we can play with the variable values. if {![runto 'marker1']} { untested "couldn't run to marker1" - return -1 + return } # Prevent symbol on address 0x0 being printed. diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp b/gdb/testsuite/gdb.cp/rvalue-ref-params.exp index 6b4c891cef3d..a4c7156bda7b 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-params.exp @@ -22,7 +22,7 @@ standard_testfile .cc if {[build_executable $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}] == -1} { - return -1 + return } proc gdb_start_again {text prefix} { diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp index e251efebf35f..af10ce37b7f1 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp @@ -22,18 +22,18 @@ standard_testfile .cc if {[prepare_for_testing $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}]} { - return -1 + return } # # Set it up at a breakpoint so we can play with the variable values. # if {![runto_main]} { - return -1 + return } if {![runto 'marker1']} { - return -1 + return } gdb_test "up" ".*main.*" "up from marker1 1" diff --git a/gdb/testsuite/gdb.cp/save-bp-qualified.exp b/gdb/testsuite/gdb.cp/save-bp-qualified.exp index a6ee09c6cdcb..a6851ba96623 100644 --- a/gdb/testsuite/gdb.cp/save-bp-qualified.exp +++ b/gdb/testsuite/gdb.cp/save-bp-qualified.exp @@ -18,7 +18,7 @@ standard_testfile .cc if { [build_executable "failed to prepare" ${testfile} $srcfile {debug c++}] } { - return -1 + return } proc restart {} { diff --git a/gdb/testsuite/gdb.cp/scope-err.exp b/gdb/testsuite/gdb.cp/scope-err.exp index 3e2591402119..87b1fd4a097f 100644 --- a/gdb/testsuite/gdb.cp/scope-err.exp +++ b/gdb/testsuite/gdb.cp/scope-err.exp @@ -22,7 +22,7 @@ standard_testfile .cc set exefile $testfile if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/shadow.exp b/gdb/testsuite/gdb.cp/shadow.exp index 1fed09a366c9..d095f85324ad 100644 --- a/gdb/testsuite/gdb.cp/shadow.exp +++ b/gdb/testsuite/gdb.cp/shadow.exp @@ -20,7 +20,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/static-method.exp b/gdb/testsuite/gdb.cp/static-method.exp index 527352f4ac4a..7ab795d0115d 100644 --- a/gdb/testsuite/gdb.cp/static-method.exp +++ b/gdb/testsuite/gdb.cp/static-method.exp @@ -43,7 +43,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} { - return -1 + return } # The GDB workaround for GCC PR debug/45682 does not apply as it requires diff --git a/gdb/testsuite/gdb.cp/static-print-quit.exp b/gdb/testsuite/gdb.cp/static-print-quit.exp index 088abb9b9f8e..19756f64732e 100644 --- a/gdb/testsuite/gdb.cp/static-print-quit.exp +++ b/gdb/testsuite/gdb.cp/static-print-quit.exp @@ -19,7 +19,7 @@ standard_testfile .cc if { [gdb_compile $srcdir/$subdir/$srcfile $binfile.o object {debug c++}] != ""} { untested "failed to compile" - return -1 + return } clean_restart $testfile.o diff --git a/gdb/testsuite/gdb.cp/static-typedef-print.exp b/gdb/testsuite/gdb.cp/static-typedef-print.exp index 2d0b9869725a..579ddf671688 100644 --- a/gdb/testsuite/gdb.cp/static-typedef-print.exp +++ b/gdb/testsuite/gdb.cp/static-typedef-print.exp @@ -18,11 +18,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "print a" \ diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp index 08694a67afbf..e8bb998231b4 100644 --- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp +++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[test_compiler_info gcc*] && ![supports_statement_frontiers] } { - return -1 + return } # Compile the test source with USE_NEXT_INLINE_H defined (when diff --git a/gdb/testsuite/gdb.cp/stub-array-size.exp b/gdb/testsuite/gdb.cp/stub-array-size.exp index 527f74fe8e26..fab9754dcc9c 100644 --- a/gdb/testsuite/gdb.cp/stub-array-size.exp +++ b/gdb/testsuite/gdb.cp/stub-array-size.exp @@ -26,7 +26,7 @@ include_file stub-array-size.h if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \ {c++ debug}]} { - return -1 + return } gdb_test "print sizeof(a)/sizeof(a\[0\])" "10" diff --git a/gdb/testsuite/gdb.cp/subtypes.exp b/gdb/testsuite/gdb.cp/subtypes.exp index 31c8c2264928..187bd494902a 100644 --- a/gdb/testsuite/gdb.cp/subtypes.exp +++ b/gdb/testsuite/gdb.cp/subtypes.exp @@ -27,7 +27,7 @@ include_file subtypes.h if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] \ {debug c++ additional_flags=-std=c++11}]} { - return -1 + return } # Xfail for superfluous DW_TAG_lexical_block, gcc PR debug/55541. diff --git a/gdb/testsuite/gdb.cp/temargs.exp b/gdb/testsuite/gdb.cp/temargs.exp index eb1d987c6747..ff4ae3bf5747 100644 --- a/gdb/testsuite/gdb.cp/temargs.exp +++ b/gdb/testsuite/gdb.cp/temargs.exp @@ -23,11 +23,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # gcc 4.4 and earlier don't emit enough info for some of our template tests. diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp index 3531b231e5df..044190f1fac0 100644 --- a/gdb/testsuite/gdb.cp/templates.exp +++ b/gdb/testsuite/gdb.cp/templates.exp @@ -30,7 +30,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/try_catch.exp b/gdb/testsuite/gdb.cp/try_catch.exp index 6a8e68834773..663f42a9c0e3 100644 --- a/gdb/testsuite/gdb.cp/try_catch.exp +++ b/gdb/testsuite/gdb.cp/try_catch.exp @@ -27,7 +27,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/typed-enum.exp b/gdb/testsuite/gdb.cp/typed-enum.exp index 7fc3759ef02e..a2021abd64cb 100644 --- a/gdb/testsuite/gdb.cp/typed-enum.exp +++ b/gdb/testsuite/gdb.cp/typed-enum.exp @@ -25,7 +25,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } gdb_test "print (int)byte_val" "= 128" diff --git a/gdb/testsuite/gdb.cp/typedef-base.exp b/gdb/testsuite/gdb.cp/typedef-base.exp index 97ce29f2a9c8..358b510e7f13 100644 --- a/gdb/testsuite/gdb.cp/typedef-base.exp +++ b/gdb/testsuite/gdb.cp/typedef-base.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "ptype C::x" \ diff --git a/gdb/testsuite/gdb.cp/typedef-operator.exp b/gdb/testsuite/gdb.cp/typedef-operator.exp index 4e45dd8a4fb4..9513b3725dc7 100644 --- a/gdb/testsuite/gdb.cp/typedef-operator.exp +++ b/gdb/testsuite/gdb.cp/typedef-operator.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} { - return -1 + return } gdb_test_no_output "set language c++" @@ -28,7 +28,7 @@ gdb_test_no_output "set language c++" gdb_test "p *u" {You can't do that without a process to debug.} "test crash" if {![runto_main]} { - return -1 + return } gdb_test "p *v" " = 42" "test typedef" diff --git a/gdb/testsuite/gdb.cp/typeid.exp b/gdb/testsuite/gdb.cp/typeid.exp index 06ba7468c758..4587ec0199ec 100644 --- a/gdb/testsuite/gdb.cp/typeid.exp +++ b/gdb/testsuite/gdb.cp/typeid.exp @@ -18,7 +18,7 @@ standard_testfile .cc require allow_cplus_tests if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc do_typeid_tests {started} { @@ -83,7 +83,7 @@ with_test_prefix "before starting" { } if {![runto_main]} { - return -1 + return } with_test_prefix "after starting" { diff --git a/gdb/testsuite/gdb.cp/userdef.exp b/gdb/testsuite/gdb.cp/userdef.exp index 68362fed2b0a..01182c4a9f15 100644 --- a/gdb/testsuite/gdb.cp/userdef.exp +++ b/gdb/testsuite/gdb.cp/userdef.exp @@ -24,7 +24,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/using-crash.exp b/gdb/testsuite/gdb.cp/using-crash.exp index 8334006f7c31..1f5e4ce7eb43 100644 --- a/gdb/testsuite/gdb.cp/using-crash.exp +++ b/gdb/testsuite/gdb.cp/using-crash.exp @@ -15,7 +15,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } runto "foo" diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-tag.exp index 676b36943d2f..c1b1158a4b57 100644 --- a/gdb/testsuite/gdb.cp/var-tag.exp +++ b/gdb/testsuite/gdb.cp/var-tag.exp @@ -23,7 +23,7 @@ standard_testfile var-tag.cc var-tag-2.cc var-tag-3.cc var-tag-4.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {debug c++}]} { - return -1 + return } proc do_global_tests {lang} { diff --git a/gdb/testsuite/gdb.cp/virtbase.exp b/gdb/testsuite/gdb.cp/virtbase.exp index b0c43fa87eaf..530587ac775d 100644 --- a/gdb/testsuite/gdb.cp/virtbase.exp +++ b/gdb/testsuite/gdb.cp/virtbase.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/virtbase2.exp b/gdb/testsuite/gdb.cp/virtbase2.exp index ae0424142f78..635635a0d282 100644 --- a/gdb/testsuite/gdb.cp/virtbase2.exp +++ b/gdb/testsuite/gdb.cp/virtbase2.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp index 21e300e4ffc9..eecf4611e233 100644 --- a/gdb/testsuite/gdb.cp/virtfunc.exp +++ b/gdb/testsuite/gdb.cp/virtfunc.exp @@ -25,7 +25,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc test_ptype_of_classes {} { diff --git a/gdb/testsuite/gdb.cp/virtfunc2.exp b/gdb/testsuite/gdb.cp/virtfunc2.exp index 761453f6227e..6d4b83e7ba42 100644 --- a/gdb/testsuite/gdb.cp/virtfunc2.exp +++ b/gdb/testsuite/gdb.cp/virtfunc2.exp @@ -25,7 +25,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/vla-cxx.exp b/gdb/testsuite/gdb.cp/vla-cxx.exp index 6fe42422c9fd..3e32cb96538e 100644 --- a/gdb/testsuite/gdb.cp/vla-cxx.exp +++ b/gdb/testsuite/gdb.cp/vla-cxx.exp @@ -20,11 +20,11 @@ lappend flags debug lappend flags c++ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Before pointer assignment"] diff --git a/gdb/testsuite/gdb.cp/watch-cp.exp b/gdb/testsuite/gdb.cp/watch-cp.exp index 31a66864fe3a..906002b754f6 100644 --- a/gdb/testsuite/gdb.cp/watch-cp.exp +++ b/gdb/testsuite/gdb.cp/watch-cp.exp @@ -18,7 +18,7 @@ require allow_cplus_tests allow_hw_watchpoint_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} {