From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mdJXEDwF72ky5z0AWB0awg (envelope-from ) for ; Mon, 27 Apr 2026 02:42:04 -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=n3u7xO/W; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 404591E093; Mon, 27 Apr 2026 02:42:04 -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 CC0BC1E093 for ; Mon, 27 Apr 2026 02:42:01 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 7404F4B99F5B for ; Mon, 27 Apr 2026 06:42:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7404F4B99F5B 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=n3u7xO/W Received: from mail-dy1-x132a.google.com (mail-dy1-x132a.google.com [IPv6:2607:f8b0:4864:20::132a]) by sourceware.org (Postfix) with ESMTPS id CB6944BB1C0F for ; Mon, 27 Apr 2026 06:36:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB6944BB1C0F 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 CB6944BB1C0F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::132a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271802; cv=none; b=VjpPu/fwGUx3Ox0h2NMioqdGQSky73KyWS3QZWLAzJ5LIijbxjWoKjFQ8/PWXgbDu5An/ZI1irXh89wMnRM2wQ1ueo97JfI1+bJC/mLhGgN5Qyzt60zx4E1SBqiWYgpNH6P3mIGdUjyoCD3puLn5VICYS890G71Z88xbqm6CFiI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271802; c=relaxed/simple; bh=d9ge8JC3cN0sv8wuxcew6BQMy3Dj1uB+Ar4s1uxraS0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=uo3lxHn9ISz8QzUzKWYk3rkxpQcMlyK2spXZrCIREi0cC31HF42lrt9TWdeW/PgJ/URAhAuIjpgErtp5o+LUqTaEbMFojELKX6bTV1YTRQqI9CSH4DJ96lwtdIz/H1ngf5GNoUINdeLjNt/gG48QG5Ujnpnb+hhh71taXZ1Drqk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB6944BB1C0F Received: by mail-dy1-x132a.google.com with SMTP id 5a478bee46e88-2c156c4a9efso13264071eec.1 for ; Sun, 26 Apr 2026 23:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777271801; x=1777876601; 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=Ec6x4pSIUGKaClNeNdg7Gr9z2Nm0Ytq1OrCEs/My5E8=; b=n3u7xO/WhXL5TCURojcc/8iDGm9WF+bQTrv1JdOMp6E9JV0C18UNoP51Z7MKHDp2cq XQTxnqj3Y27NpD5exI7saXFF0Ymrje72okwVRtdrSYpWOsglN2+iyMp0fZaVgswAblRa 39A/IpJMlVO92CLuRJRbM7XeTsQsqNq8N4UBTeEUSxbFSdKHMIB9VWEMl6xKa3PZ65Wm 0iZvz01ICsrOBz0J/qCxdJtnC84HiT1raVETDAt6G08rcaOyYOg/WUq73EPHUONcapl/ Br7nB9d1jcEzKfa44tQ+J9M/qaoT7dhx7yc0Eb89cI2tejsjUbNyjjiay4EHLAnyNINn PhLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777271801; x=1777876601; 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=Ec6x4pSIUGKaClNeNdg7Gr9z2Nm0Ytq1OrCEs/My5E8=; b=KnAiqyJcf0KEWXXT8sO32texRTqaaK9yMC/FgDOqAfjvDG/CVBWw2t4Cuo9oE4t6b0 ru7JgFxgaZ00psQY8mBA19yG0w9fWdFwyJMbzyDFSU40RaSQYZSGEWV4sKD0qC9y7S+1 fXsdDDCRI6hlF11H0tHJFW0KVP49lNFs+amD9uE8L0IS5vAJ8ItvXi5pKvVEQYG1khyE 7b0zD7ajrlkiX8St1t0xt7W2P2ZrdR/w+YVllMMA6K4kxYWJQ5tZnpif0z9nEG7xCFaD UbpByirSqhD7uWIs4M55+OlMSMiO+W/wrDCjNgHPU27Zt0zOIopdkx80KTj0DVW8xUMB LCSA== X-Gm-Message-State: AOJu0YzvYgqWRZQ68xF4gXnlGexBaQtxdhaY1WAX5yXJio3ojdfIyZD0 5dX5F9yHhzMpmNvKANwvq+p33xpqs7LYI5saL/RKSEJcVkI8AuG/hq/H2sXYXuOx+VXCsNq/1Ln hBRa6 X-Gm-Gg: AeBDietziVly/1arpYIc/Ir2qeWaOsr6lD8AI8z/8bAldLmaTyn/RiK2jyiBvwMQ8kR iRw5wiMX4oop4Tt6AJ/qa77zsKX05aJPiUmlPgb7/PifzBKHs/6652vE+kSMeVmQtPTP2eLgz4p KOJ7F9q+xSpDAfhkaYWjvqjQhuxe6UOrPKQAowhF6/VRHDTzW5ExRoawF2JJcY4LBrVB1o5d8m0 mT41vI3JDT5m2vNaNxTfzWIpgWjqZEQqHYtB7OLDP7/xooZNxRUnxMLLRt/zN56o+HF4q+KQe2o vy2JJYc98NOrPX1kg2z2Min4tzwNBwR3x7dsuGnpUUQRb1e7D3+U1vYfXiuLfBuXTawmJ2p2y9e j1VQn7K7yOl/Rsx+mfat2SSxcZ/aO1zZ2/ci8ykEwFO/3qEXrqqeQXCTNkoZPVL+V+bRRwpCxEZ 1QWqAh5ciI9wV5g7q4ajUt5QpnNrpdaoD2YyBMZg11kwfe X-Received: by 2002:a05:7300:d70c:b0:2de:c5ca:c1e8 with SMTP id 5a478bee46e88-2e464eaa2demr21437624eec.4.1777271800360; Sun, 26 Apr 2026 23:36:40 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:33bc:f32e:9aa5:b915]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53d4bdaf7sm40953448eec.25.2026.04.26.23.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 23:36:40 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH 25/36] GDB: testsuite: MI: Don't return -1 from top-level (sed) Date: Mon, 27 Apr 2026 03:34:49 -0300 Message-ID: <20260427063500.3847618-26-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.mi. --- gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp | 2 +- gdb/testsuite/gdb.mi/gdb669.exp | 2 +- gdb/testsuite/gdb.mi/interrupt-thread-group.exp | 2 +- gdb/testsuite/gdb.mi/list-thread-groups-available.exp | 2 +- gdb/testsuite/gdb.mi/mi-add-inferior.exp | 2 +- gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp | 2 +- gdb/testsuite/gdb.mi/mi-breakpoint-script.exp | 2 +- gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-catch-load.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-cmd-user-context.exp | 2 +- gdb/testsuite/gdb.mi/mi-condbreak-fail.exp | 2 +- gdb/testsuite/gdb.mi/mi-condbreak-throw.exp | 2 +- gdb/testsuite/gdb.mi/mi-corefile.exp | 2 +- gdb/testsuite/gdb.mi/mi-dprintf-pending.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-dprintf.exp | 2 +- gdb/testsuite/gdb.mi/mi-exit-code.exp | 2 +- gdb/testsuite/gdb.mi/mi-file-transfer.exp | 2 +- gdb/testsuite/gdb.mi/mi-fortran-modules.exp | 2 +- gdb/testsuite/gdb.mi/mi-fullname-deleted.exp | 6 +++--- gdb/testsuite/gdb.mi/mi-info-os.exp | 6 +++--- gdb/testsuite/gdb.mi/mi-info-sources.exp | 2 +- gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp | 2 +- gdb/testsuite/gdb.mi/mi-logging.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-memory-changed.exp | 2 +- gdb/testsuite/gdb.mi/mi-nonstop-exit.exp | 2 +- gdb/testsuite/gdb.mi/mi-nonstop.exp | 2 +- gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 2 +- gdb/testsuite/gdb.mi/mi-nsintrall.exp | 2 +- gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 2 +- gdb/testsuite/gdb.mi/mi-nsthrexec.exp | 2 +- gdb/testsuite/gdb.mi/mi-pending.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-pthreads.exp | 2 +- gdb/testsuite/gdb.mi/mi-py-modify-bp.exp | 2 +- gdb/testsuite/gdb.mi/mi-record-changed.exp | 2 +- gdb/testsuite/gdb.mi/mi-reg-undefined.exp | 2 +- gdb/testsuite/gdb.mi/mi-stepn.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-sym-info.exp | 2 +- gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp | 2 +- gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp | 2 +- gdb/testsuite/gdb.mi/mi-threads-interrupt.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-block.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-child-f.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-child.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-var-cmd.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-create-rtti.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-var-display.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp | 4 ++-- gdb/testsuite/gdb.mi/mi-var-invalidate.exp | 6 +++--- .../gdb.mi/mi-var-list-children-invalid-grandchild.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-rtti.exp | 2 +- gdb/testsuite/gdb.mi/mi-watch-nonstop.exp | 2 +- gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp | 2 +- gdb/testsuite/gdb.mi/mi2-cli-display.exp | 2 +- gdb/testsuite/gdb.mi/mi2-var-child.exp | 2 +- gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp | 2 +- gdb/testsuite/gdb.mi/new-ui-mi-sync.exp | 2 +- gdb/testsuite/gdb.mi/print-simple-values.exp | 2 +- gdb/testsuite/gdb.mi/user-selected-context-sync.exp | 2 +- 59 files changed, 75 insertions(+), 75 deletions(-) diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp index ad0dd162c495..94f42fe77ab8 100644 --- a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp +++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp @@ -39,7 +39,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $objsfile object {}] != "" || [gdb_compile "${srcdir}/${subdir}/${srcfile2}" $objfuncfile object {}] != "" || [gdb_compile "${srcdir}/${subdir}/${srcfile3}" $objmainfile object {debug}] != "" || [gdb_compile "$objfuncfile $objsfile $objmainfile" $binfile executable {}] != "" } { - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/gdb669.exp b/gdb/testsuite/gdb.mi/gdb669.exp index a07117a3804c..b03577d85748 100644 --- a/gdb/testsuite/gdb.mi/gdb669.exp +++ b/gdb/testsuite/gdb.mi/gdb669.exp @@ -27,7 +27,7 @@ standard_testfile pthreads.c set options [list debug] if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { - return -1 + return } mi_clean_restart $::testfile diff --git a/gdb/testsuite/gdb.mi/interrupt-thread-group.exp b/gdb/testsuite/gdb.mi/interrupt-thread-group.exp index 17a2a42c5e6c..f2c45a9dc27e 100644 --- a/gdb/testsuite/gdb.mi/interrupt-thread-group.exp +++ b/gdb/testsuite/gdb.mi/interrupt-thread-group.exp @@ -25,7 +25,7 @@ standard_testfile .c if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile \ executable {debug additional_flags=-std=gnu99}] != "" } { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp index 426e39ff2b63..77f932cd167e 100644 --- a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp +++ b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp @@ -26,7 +26,7 @@ require can_spawn_for_attach if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_gdb_start]} { diff --git a/gdb/testsuite/gdb.mi/mi-add-inferior.exp b/gdb/testsuite/gdb.mi/mi-add-inferior.exp index fc9002bd6279..607eaacdf22d 100644 --- a/gdb/testsuite/gdb.mi/mi-add-inferior.exp +++ b/gdb/testsuite/gdb.mi/mi-add-inferior.exp @@ -23,7 +23,7 @@ standard_testfile basics.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable {debug}] != "" } { untested "failed to compile" - return -1 + return } mi_clean_restart ${::testfile} diff --git a/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp b/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp index 78e2ebc3ea88..688ad46f1b39 100644 --- a/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp +++ b/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp @@ -32,7 +32,7 @@ set lib_opts "debug" if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != "" || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} { untested "failed to compile shared library" - return -1 + return } set MIFLAGS "-i=mi" @@ -40,7 +40,7 @@ set MIFLAGS "-i=mi" set exec_opts [list debug shlib=$lib_sl1 shlib_load] if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } { untested "failed to compile" - return -1 + return } proc test_insert_delete_modify { } { diff --git a/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp b/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp index eb20460f7594..95097568624e 100644 --- a/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp +++ b/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp @@ -19,7 +19,7 @@ load_lib mi-support.exp standard_testfile .cc if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug c++}] != "" } { - return -1 + return } # Generate the regexp pattern used to match the breakpoint description emitted diff --git a/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp b/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp index 70a03d9e0a08..0ec3b4d1abca 100644 --- a/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp +++ b/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp @@ -20,7 +20,7 @@ load_lib mi-support.exp standard_testfile .c if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } { - return -1 + return } # Generate the regexp pattern used to match the breakpoint description emitted diff --git a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp index ef3164034e79..3581bbe8d794 100644 --- a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp +++ b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp @@ -24,12 +24,12 @@ standard_testfile .cc if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } { untested "failed to compile" - return -1 + return } mi_clean_restart $::testfile if {[mi_runto_main] < 0} { - return -1 + return } set libstdcxx_probe_tests_supported [expr {![mi_skip_libstdcxx_probe_tests]}] diff --git a/gdb/testsuite/gdb.mi/mi-catch-load.exp b/gdb/testsuite/gdb.mi/mi-catch-load.exp index 4afd9154eb39..e42f9c075ab0 100644 --- a/gdb/testsuite/gdb.mi/mi-catch-load.exp +++ b/gdb/testsuite/gdb.mi/mi-catch-load.exp @@ -20,7 +20,7 @@ standard_testfile mi-catch-load.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } { untested "failed to compile" - return -1 + return } set testfile2 mi-catch-load-so @@ -29,7 +29,7 @@ set binfile2 [standard_output_file ${testfile2}.so] set binfile2_dlopen [shlib_target_file ${testfile2}.so] if { [gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" ${binfile2} {debug}] != "" } { untested "failed to compile shared library" - return -1 + return } gdb_download_shlib $binfile2 diff --git a/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp b/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp index 6e5be0d27764..7ee1949e4405 100644 --- a/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp +++ b/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp @@ -22,7 +22,7 @@ standard_testfile if {[build_executable $testfile.exp $testfile ${srcfile} "debug pthreads"] == -1} { untested "failed to compile" - return -1 + return } set main_break_line [gdb_get_line_number "main break line"] diff --git a/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp b/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp index db3b61e320fd..99629840e04e 100644 --- a/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp +++ b/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp @@ -23,7 +23,7 @@ set MIFLAGS "-i=mi" standard_testfile if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} { - return -1 + return } # Create a breakpoint with a condition that invokes an inferior diff --git a/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp b/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp index 97e671cd2dab..e367f7a24200 100644 --- a/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp +++ b/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp @@ -26,7 +26,7 @@ set MIFLAGS "-i=mi" standard_testfile .cc if {[build_executable ${testfile}.exp ${binfile} ${srcfile} {debug c++}]} { - return -1 + return } # Create a breakpoint with a condition that invokes an inferior diff --git a/gdb/testsuite/gdb.mi/mi-corefile.exp b/gdb/testsuite/gdb.mi/mi-corefile.exp index d3fd841abf40..67c6183f3867 100644 --- a/gdb/testsuite/gdb.mi/mi-corefile.exp +++ b/gdb/testsuite/gdb.mi/mi-corefile.exp @@ -24,7 +24,7 @@ standard_testfile if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { untested "failed to compile" - return -1 + return } set corefile [core_find $binfile {}] diff --git a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp index f9767fb8c27c..b2e1cc3438cb 100644 --- a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp +++ b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp @@ -31,12 +31,12 @@ set exec_opts [list debug shlib=$lib_sl1 shlib_load] if {[gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""} { untested "failed to compile shared library" - return -1 + return } if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-dprintf.exp b/gdb/testsuite/gdb.mi/mi-dprintf.exp index 3f0e4dba1d99..9b2c192e5041 100644 --- a/gdb/testsuite/gdb.mi/mi-dprintf.exp +++ b/gdb/testsuite/gdb.mi/mi-dprintf.exp @@ -25,7 +25,7 @@ lappend_include_file flags $srcdir/lib/unbuffer_output.c if {[build_executable $testfile.exp $testfile $srcfile $flags] == -1} { untested "failed to compile" - return -1 + return } set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] diff --git a/gdb/testsuite/gdb.mi/mi-exit-code.exp b/gdb/testsuite/gdb.mi/mi-exit-code.exp index c12d1158c07b..2e48c7ce028d 100644 --- a/gdb/testsuite/gdb.mi/mi-exit-code.exp +++ b/gdb/testsuite/gdb.mi/mi-exit-code.exp @@ -20,7 +20,7 @@ standard_testfile if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } proc test_list_thread_groups { } { diff --git a/gdb/testsuite/gdb.mi/mi-file-transfer.exp b/gdb/testsuite/gdb.mi/mi-file-transfer.exp index 7a42766964e7..5fc137ba5a05 100644 --- a/gdb/testsuite/gdb.mi/mi-file-transfer.exp +++ b/gdb/testsuite/gdb.mi/mi-file-transfer.exp @@ -26,7 +26,7 @@ standard_testfile basics.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart]} { diff --git a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp index 2d874612e05d..c08d5c2038a7 100644 --- a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp +++ b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp @@ -25,7 +25,7 @@ standard_testfile "mi-fortran-modules.f90" "mi-fortran-modules-2.f90" if {[build_executable "failed to prepare" ${testfile} \ [list $srcfile2 $srcfile] {debug f90}]} { - return -1 + return } mi_clean_restart $::testfile diff --git a/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp b/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp index 803c07b3ea03..9f56e03d747a 100644 --- a/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp +++ b/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp @@ -32,13 +32,13 @@ set srcfileabs [standard_output_file $srcfile] # not match" test when using Clang (it can never fail). if { [regsub {/[^/]+$} $srcfileabs {/\0} srcfileabs] != 1 } { xfail "cannot double the last slash separator" - return -1 + return } if { [regsub {^(/[^/]+)/} $srcfileabs {\1subst/} srcfileabssubst] != 1 || [regsub {^(/[^/]+)/.*$} $srcfileabs {\1} initdir] != 1 } { xfail "missing root subdirectory" - return -1 + return } # Generate a regular expression which to match $srcfileabs with @@ -53,7 +53,7 @@ close $f if { [gdb_compile "$srcfileabs" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } file delete -- $srcfileabs diff --git a/gdb/testsuite/gdb.mi/mi-info-os.exp b/gdb/testsuite/gdb.mi/mi-info-os.exp index 9adc8d31c4ed..f802d8cfd92e 100644 --- a/gdb/testsuite/gdb.mi/mi-info-os.exp +++ b/gdb/testsuite/gdb.mi/mi-info-os.exp @@ -19,7 +19,7 @@ set MIFLAGS "-i=mi" # This test is Linux-only. if {![istarget *-*-linux*]} { unsupported "mi-info-os.exp" - return -1 + return } # Support for XML-output is needed to run this test. @@ -29,7 +29,7 @@ standard_testfile basics.c if {[build_executable "Failed to build $testfile" $testfile $srcfile \ debug]} { - return -1; + return; } if {[mi_clean_restart $::testfile]} { @@ -44,7 +44,7 @@ if {[mi_clean_restart $::testfile]} { # running any program, so we want to avoid "run". Using # mi_gdb_target_load directly instead achieves this. if {[mi_gdb_target_load] < 0} { - return -1 + return } # Try the argument-less form that lists all the types in a table. diff --git a/gdb/testsuite/gdb.mi/mi-info-sources.exp b/gdb/testsuite/gdb.mi/mi-info-sources.exp index ab92fff197c0..0b3016c0b55d 100644 --- a/gdb/testsuite/gdb.mi/mi-info-sources.exp +++ b/gdb/testsuite/gdb.mi/mi-info-sources.exp @@ -23,7 +23,7 @@ standard_testfile .c -base.c if {[build_executable $testfile.exp $testfile \ [list $srcfile $srcfile2] debug]} { untested $testfile.exp - return -1 + return } mi_clean_restart $::testfile diff --git a/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp b/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp index b06f4686e082..91261597fa91 100644 --- a/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp +++ b/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp @@ -26,7 +26,7 @@ standard_testfile .cc set exefile $testfile if {[build_executable "failed to prepare" $exefile $srcfile {debug c++}]} { - return -1 + return } mi_clean_restart $::testfile diff --git a/gdb/testsuite/gdb.mi/mi-logging.exp b/gdb/testsuite/gdb.mi/mi-logging.exp index 6cff709cfc5c..1ed0d229bae0 100644 --- a/gdb/testsuite/gdb.mi/mi-logging.exp +++ b/gdb/testsuite/gdb.mi/mi-logging.exp @@ -21,13 +21,13 @@ set opts {debug} if {[build_executable $testfile.exp $testfile $srcfile $opts]} { untested "failed to compile" - return -1 + return } mi_clean_restart $::testfile if {[mi_runto_main] < 0} { - return -1 + return } set milogfile [standard_output_file "milog.txt"] diff --git a/gdb/testsuite/gdb.mi/mi-memory-changed.exp b/gdb/testsuite/gdb.mi/mi-memory-changed.exp index 6f41ecd8ad32..916d240b09bc 100644 --- a/gdb/testsuite/gdb.mi/mi-memory-changed.exp +++ b/gdb/testsuite/gdb.mi/mi-memory-changed.exp @@ -17,7 +17,7 @@ standard_testfile basics.c if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ executable {debug nowarnings}] != "" } { untested "failed to compile" - return -1 + return } load_lib mi-support.exp diff --git a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp b/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp index 8958755c57a4..ba62f74bf015 100644 --- a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp +++ b/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp @@ -25,7 +25,7 @@ standard_testfile non-stop-exit.c set options [list debug] if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.mi/mi-nonstop.exp b/gdb/testsuite/gdb.mi/mi-nonstop.exp index e85049191583..970b11a2f8e2 100644 --- a/gdb/testsuite/gdb.mi/mi-nonstop.exp +++ b/gdb/testsuite/gdb.mi/mi-nonstop.exp @@ -35,7 +35,7 @@ standard_testfile non-stop.c set options [list debug] if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { - return -1 + return } diff --git a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp b/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp index 34257ee5c776..d5f6a1ec16bf 100644 --- a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp +++ b/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp @@ -38,7 +38,7 @@ standard_testfile ns-stale-regcache.c set options [list debug] if {[gdb_compile "$srcdir/$subdir/$srcfile" \ $binfile executable $options] != "" } { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.mi/mi-nsintrall.exp b/gdb/testsuite/gdb.mi/mi-nsintrall.exp index 84319b142a51..7850b5ad98f3 100644 --- a/gdb/testsuite/gdb.mi/mi-nsintrall.exp +++ b/gdb/testsuite/gdb.mi/mi-nsintrall.exp @@ -25,7 +25,7 @@ standard_testfile nsintrall.c set options [list debug] if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp index 04c6162d87ba..b82996b72b94 100644 --- a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp +++ b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp @@ -25,7 +25,7 @@ standard_testfile nsmoribund.c set options [list debug] if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp b/gdb/testsuite/gdb.mi/mi-nsthrexec.exp index 9446d6f3c6cf..64b27eacf91f 100644 --- a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp +++ b/gdb/testsuite/gdb.mi/mi-nsthrexec.exp @@ -30,7 +30,7 @@ standard_testfile nsthrexec.c set options [list debug] if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.mi/mi-pending.exp b/gdb/testsuite/gdb.mi/mi-pending.exp index 99719be76a12..1ad9aecdc8b4 100644 --- a/gdb/testsuite/gdb.mi/mi-pending.exp +++ b/gdb/testsuite/gdb.mi/mi-pending.exp @@ -36,12 +36,12 @@ set exec_opts [list debug shlib=$lib_sl1 shlib_load] if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != "" || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} { untested "failed to compile shared library" - return -1 + return } if { [gdb_compile_pthreads $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} { untested "failed to compile" - return -1 + return } # Start with a fresh gdb. diff --git a/gdb/testsuite/gdb.mi/mi-pthreads.exp b/gdb/testsuite/gdb.mi/mi-pthreads.exp index 7e1d0123500b..1db1aba5afad 100644 --- a/gdb/testsuite/gdb.mi/mi-pthreads.exp +++ b/gdb/testsuite/gdb.mi/mi-pthreads.exp @@ -60,7 +60,7 @@ standard_testfile pthreads.c set options [list debug] if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp b/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp index 022f6761362c..5b4ba362ef0f 100644 --- a/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp +++ b/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp @@ -25,7 +25,7 @@ standard_testfile require allow_python_tests if {[build_executable $testfile.exp $testfile $srcfile] == -1} { - return -1 + return } set remote_python_file [gdb_remote_download host \ diff --git a/gdb/testsuite/gdb.mi/mi-record-changed.exp b/gdb/testsuite/gdb.mi/mi-record-changed.exp index e4e54f1adf1e..1f4dbf7b686b 100644 --- a/gdb/testsuite/gdb.mi/mi-record-changed.exp +++ b/gdb/testsuite/gdb.mi/mi-record-changed.exp @@ -19,7 +19,7 @@ standard_testfile basics.c if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ executable {debug nowarnings}] != "" } { untested "failed to compile" - return -1 + return } load_lib mi-support.exp diff --git a/gdb/testsuite/gdb.mi/mi-reg-undefined.exp b/gdb/testsuite/gdb.mi/mi-reg-undefined.exp index 5b6e998d7d72..dd7b2961b03f 100644 --- a/gdb/testsuite/gdb.mi/mi-reg-undefined.exp +++ b/gdb/testsuite/gdb.mi/mi-reg-undefined.exp @@ -35,7 +35,7 @@ if {[mi_clean_restart $::testfile]} { if {![mi_runto stop_frame]} { perror "Failed to stop in stop_frame" - return -1 + return } mi_gdb_test "111-stack-list-frames" \ diff --git a/gdb/testsuite/gdb.mi/mi-stepn.exp b/gdb/testsuite/gdb.mi/mi-stepn.exp index 42255de20b3d..77a32060203b 100644 --- a/gdb/testsuite/gdb.mi/mi-stepn.exp +++ b/gdb/testsuite/gdb.mi/mi-stepn.exp @@ -23,13 +23,13 @@ standard_testfile set opts {debug} if {[build_executable ${testfile}.exp ${testfile} ${srcfile} $opts]} { - return -1 + return } mi_clean_restart $::testfile if {[mi_runto_main] < 0} { - return -1 + return } mi_create_breakpoint do_nothing \ diff --git a/gdb/testsuite/gdb.mi/mi-sym-info.exp b/gdb/testsuite/gdb.mi/mi-sym-info.exp index 96d261ded404..e129d5746a32 100644 --- a/gdb/testsuite/gdb.mi/mi-sym-info.exp +++ b/gdb/testsuite/gdb.mi/mi-sym-info.exp @@ -30,7 +30,7 @@ standard_testfile mi-sym-info-1.c mi-sym-info-2.c if {[build_executable "failed to prepare" ${testfile} \ [list $srcfile $srcfile2] {debug}]} { - return -1 + return } mi_clean_restart $::testfile diff --git a/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp b/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp index bd7b606b87cd..e80475911fcf 100644 --- a/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp +++ b/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp @@ -32,7 +32,7 @@ standard_testfile if { [build_executable "failed to prepare" $testfile $srcfile \ {debug pthreads}] } { - return -1 + return } foreach_mi_ui_mode mode { diff --git a/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp b/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp index 9f250912b2ce..ac76a5579c0c 100644 --- a/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp +++ b/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp @@ -26,7 +26,7 @@ if {[mi_clean_restart]} { standard_testfile if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} { - return -1 + return } proc make_loc {num} { diff --git a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp b/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp index 0d8b091d0ac9..5de4fc06c80f 100644 --- a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp +++ b/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp @@ -21,7 +21,7 @@ set MIFLAGS "-i=mi" standard_testfile if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } { - return -1 + return } # This tests the resolution of PR 20039. diff --git a/gdb/testsuite/gdb.mi/mi-var-block.exp b/gdb/testsuite/gdb.mi/mi-var-block.exp index e2450527de60..27836717ef8d 100644 --- a/gdb/testsuite/gdb.mi/mi-var-block.exp +++ b/gdb/testsuite/gdb.mi/mi-var-block.exp @@ -26,7 +26,7 @@ standard_testfile var-cmd.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-var-child-f.exp b/gdb/testsuite/gdb.mi/mi-var-child-f.exp index cb249364b68f..ad81441db057 100644 --- a/gdb/testsuite/gdb.mi/mi-var-child-f.exp +++ b/gdb/testsuite/gdb.mi/mi-var-child-f.exp @@ -25,7 +25,7 @@ standard_testfile array.f90 if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable {debug f90}] != ""} { - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-var-child.exp b/gdb/testsuite/gdb.mi/mi-var-child.exp index cbc672a14c2c..8c0b8472272b 100644 --- a/gdb/testsuite/gdb.mi/mi-var-child.exp +++ b/gdb/testsuite/gdb.mi/mi-var-child.exp @@ -26,7 +26,7 @@ standard_testfile if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { @@ -1201,7 +1201,7 @@ mi_varobj_update * {psnp->ptrs.0.next.next.long_ptr} \ mi_prepare_inline_tests $srcfile if { [mi_run_inline_test child_deletion] < 0 } { - return -1 + return } diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp index d95c9847e96e..bf207dad255e 100644 --- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp +++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp @@ -26,7 +26,7 @@ standard_testfile var-cmd.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp index 918d0497806d..08b6076dea05 100644 --- a/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp +++ b/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp @@ -20,13 +20,13 @@ standard_testfile .c set opts {debug} if {[build_executable $testfile.exp $testfile $srcfile $opts]} { - return -1 + return } mi_clean_restart $::testfile if {[mi_runto_main] < 0} { - return -1 + return } # Test creating a register-based variable. We pick diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp index 2efbd2903a13..325291efe500 100644 --- a/gdb/testsuite/gdb.mi/mi-var-display.exp +++ b/gdb/testsuite/gdb.mi/mi-var-display.exp @@ -26,7 +26,7 @@ standard_testfile var-cmd.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp b/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp index 45e64bcc2c51..80a97fbcbf2a 100644 --- a/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp +++ b/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp @@ -27,7 +27,7 @@ set shlib_path [standard_output_file ${testfile}-lib.so] if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $shlib_path {debug}] != "" } { untested "failed to compile" - return -1 + return } set shlib_path_target [gdb_download_shlib $shlib_path] @@ -39,7 +39,7 @@ lappend opts additional_flags=-DSHLIB_PATH=[quote_for_host $shlib_path_target] if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } { untested "failed to compile" - return -1 + return } proc do_test { separate_debuginfo } { diff --git a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp index 693db9977913..0edb5b6b1881 100644 --- a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp +++ b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp @@ -27,13 +27,13 @@ standard_testfile var-cmd.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } # Just change the output binary. set binfile_bis [standard_output_file mi-var-invalidate_bis] if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } set testfile2 "basics" @@ -41,7 +41,7 @@ set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}] if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp b/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp index 42495401702c..366e15aa676c 100644 --- a/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp +++ b/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp @@ -23,7 +23,7 @@ standard_testfile if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-var-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-rtti.exp index b254de20c1e9..9a98e2adfa9c 100644 --- a/gdb/testsuite/gdb.mi/mi-var-rtti.exp +++ b/gdb/testsuite/gdb.mi/mi-var-rtti.exp @@ -22,7 +22,7 @@ standard_testfile .cc set opts {debug c++} if {[build_executable $testfile.exp $testfile $srcfile $opts]} { - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp b/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp index 856a1a370080..7f972ea6ea6a 100644 --- a/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp +++ b/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp @@ -33,7 +33,7 @@ proc mi_nonstop_resume { command test } { standard_testfile watch-nonstop.c if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp b/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp index 16a45d00265f..fcea890d78af 100644 --- a/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp +++ b/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp @@ -28,7 +28,7 @@ if {[info exists COMPILE]} { } if {[build_executable ${testfile}.exp ${binfile} ${srcfile} $opts]} { - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi2-cli-display.exp b/gdb/testsuite/gdb.mi/mi2-cli-display.exp index 263568c39665..f339f3fbebf5 100644 --- a/gdb/testsuite/gdb.mi/mi2-cli-display.exp +++ b/gdb/testsuite/gdb.mi/mi2-cli-display.exp @@ -22,7 +22,7 @@ standard_testfile if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/mi2-var-child.exp b/gdb/testsuite/gdb.mi/mi2-var-child.exp index e5b4adada38d..def9faf36d5b 100644 --- a/gdb/testsuite/gdb.mi/mi2-var-child.exp +++ b/gdb/testsuite/gdb.mi/mi2-var-child.exp @@ -26,7 +26,7 @@ standard_testfile var-cmd.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp b/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp index ea81a9ab2f6b..910dd2636847 100644 --- a/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp +++ b/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp @@ -31,7 +31,7 @@ set MIFLAGS "-i=mi" standard_testfile if { [build_executable "failed to prepare" $testfile $srcfile] } { - return -1 + return } # Helper proc to create a breakpoint location regexp. NUM is the diff --git a/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp b/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp index 915f40571e15..fe679b09f976 100644 --- a/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp +++ b/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp @@ -29,7 +29,7 @@ standard_testfile if {[build_executable $testfile.exp $testfile ${srcfile} "debug"] == -1} { untested "failed to compile" - return -1 + return } # The test driver. SYNC_COMMAND specifies which command is used to diff --git a/gdb/testsuite/gdb.mi/print-simple-values.exp b/gdb/testsuite/gdb.mi/print-simple-values.exp index 4de81c4cbd4c..875da82ff7cc 100644 --- a/gdb/testsuite/gdb.mi/print-simple-values.exp +++ b/gdb/testsuite/gdb.mi/print-simple-values.exp @@ -31,7 +31,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[build_executable "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } if {[mi_clean_restart $::testfile]} { diff --git a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp index 844206f75116..fea284b70125 100644 --- a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp +++ b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp @@ -45,7 +45,7 @@ require allow_multi_inferior_tests set compile_options "debug pthreads" if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} { untested "failed to compile" - return -1 + return } set main_break_line [gdb_get_line_number "main break line"]