From patchwork Wed Apr 29 23:04:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 134227 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 02ACA4BA798C for ; Wed, 29 Apr 2026 23:14:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02ACA4BA798C 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=J+yxUiU4 X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by sourceware.org (Postfix) with ESMTPS id ACC864358A57 for ; Wed, 29 Apr 2026 23:05:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ACC864358A57 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 ACC864358A57 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::e30 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777503957; cv=none; b=cXHLJheWBpUMG0ss/YC2lfWy/l4Bi48C8b72JYShFCy8eL7y9hkQU9F/lLR/Wvi10zVs7HbSko7ZmHJ9qFMZB6bIJMLXjNGHtlJ4cOha1qfp2f1RGzo62AhuB2yDZ350aFakRaHjAE+Fg0+XJSkDrsiGnWIZTQboGRIo5islvEk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777503957; c=relaxed/simple; bh=TCnFb/psT0y8+NkTNXNDZciPTwCf85WT67zKA5bByCY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=jd99KVoV2abqL2SIaWyW3MUpqD/OmjzvFBZxJ+NrBEgP8D2qMnto99jB8jQ4EMGyCGJm9FaMNsOuRxg2ZmewCiyEeea82yrd5+6eimbjZ1ctY+Em1aAu72KBdxLwIXgWmbwBSfRV0jmhj+r3j4AfNcWBIonspr2PKQ5ICaH/psQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACC864358A57 Received: by mail-vs1-xe30.google.com with SMTP id ada2fe7eead31-60fce51aa55so108340137.3 for ; Wed, 29 Apr 2026 16:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777503957; x=1778108757; 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=n4BbJy427LLf07aM+ksn0AKlHt0oEnS9MN3Dcx63Oik=; b=J+yxUiU4Gx48V0lrZ9XG8xMWCgYiojel7KtQxCor9SkmhT3yBZov7kzM+1JiIy+iWo hsMgN1L1ZkCJ/SSlxgvp1XAO8UZ/Toj/yWfRWmeTDrokX1DdwdU/ZvwMX10ib84hPVD3 GudODkN/kegWxmKPhWia+nM8162nSN86ZR7lS57Xjp7IN6y0lk5EK97t7Q2XsWTXV/wZ BbsG2tn/RwKhOSCYKZfNTNFy1SO8NUeKy3YH0rk4ogLazGYm/FOVGI8waynVZWWkJ5N/ ajrBUaW53b23YkT+eAyNBa21s5qAL8MEjcdCDrhcxCvi934olBuG2+HdISMMC4EURuXD nnVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777503957; x=1778108757; 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=n4BbJy427LLf07aM+ksn0AKlHt0oEnS9MN3Dcx63Oik=; b=CICBWlgYGzCnF1J7ZXPmw9CxqZNKv4M2V/Y/U+o2ap7iohSAlpP5ofecHiz5n/+YoQ TJT5LbODzVBkAGfmXJCWJTKxjePUWx11U0Vu2b8sB7WC6XOaUlf1bjW14v9efgbm7hXz xt7kENzMkJZb5mcjgyHN1MMbRTUrQbbWBf9alGW659oXzjSU4a1/eA1UrihFCf87aq8R 5ZpFyJnNniwmm4w66+30I4SnxFtL2vEWmLHoQ/Y1EM0btMml1KRfI+fXGsWSh8eQ0XZb WLKd4+sggj5Ak5D239PGDIHOHahIbjR0F3If6eVVx+/Wk4VKIKAPYU1vqm2I5Y9EcY8n j7Yw== X-Gm-Message-State: AOJu0Ywm1Lc2VQYKQUqotnGXkXMuaMIKdgZoCdbQkHe7ibDyfCZiOKvJ K2vQr10DWEp10hIMnp6AMaj1q6sVuoFRdvvT8DyFwq63mXyPUlo/xerW1Ro1fv4iXa21g42cLxU bEHoc X-Gm-Gg: AeBDies1DhAinDgeIGwoJXCKW+Pihi2jzjNXYo8LbHT0idJwQsFlEIDyxdxHPXlcyP1 hBeZFoLoUW3nms3oYFvv2KmJzT48/4W8SXHFAg4k2cFSJuZBMk0U8WT7n9UZSPk0D+caW7NWKBU cfqFLsGRm96WFx3q/VsncsJgerHgkLnXPA/M72OZ4rAv4f2+sFCURz2onWtSVCE+71tKXE4lDmu TLdraNRhpuTpox17AMc6dczY6NYC5F/MZSLP/0aP+5d7khQDaE74id1l/jHtA2vu8VrpG2h9LR5 ocdDMxtBUUGsHQaRBgwiR8KBlVRnJhOs6nyQW2NBo+iDL2YDWCZ7OBUBAQ8+/EF2eoF3baKyY/W gDlp8QkXypN+AC4vdEOCykU5MV8RUikEE0vtqsTEChPkFEjmThpzVUb5m3UYi98Plqm0ixAiKh1 fMV2s0QwJoJ/67gPJ7oSJQ7IMhrrsuzFBCPwO2E5K7/oyIE+qecmXvGMM= X-Received: by 2002:a05:6102:4a8a:b0:605:889a:89a1 with SMTP id ada2fe7eead31-62ad405c8bamr285688137.23.1777503956535; Wed, 29 Apr 2026 16:05:56 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-6297f4e2345sm2049671137.0.2026.04.29.16.05.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 16:05:56 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH v2 22/37] GDB: testsuite: Python: Don't return -1 from top-level (sed) Date: Wed, 29 Apr 2026 20:04:13 -0300 Message-ID: <20260429230432.60487-23-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260429230432.60487-1-thiago.bauermann@linaro.org> References: <20260429230432.60487-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org 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~patchwork=sourceware.org@sourceware.org This patch is purely the result of running: $ sed -i 's/^ return -1/ return/' *.exp* inside gdb/testsuite/gdb.python. --- gdb/testsuite/gdb.python/lib-types.exp | 2 +- gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp | 2 +- gdb/testsuite/gdb.python/py-arch-reg-groups.exp | 2 +- gdb/testsuite/gdb.python/py-arch-reg-names.exp | 2 +- gdb/testsuite/gdb.python/py-arch.exp | 2 +- gdb/testsuite/gdb.python/py-as-string.exp | 2 +- gdb/testsuite/gdb.python/py-auto-load-chaining.exp | 2 +- .../py-autoloaded-pretty-printers-in-newobjfile-event.exp | 4 ++-- gdb/testsuite/gdb.python/py-bad-printers.exp | 4 ++-- gdb/testsuite/gdb.python/py-block.exp | 2 +- gdb/testsuite/gdb.python/py-bp-locations.exp | 6 +++--- gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp | 2 +- gdb/testsuite/gdb.python/py-breakpoint.exp | 2 +- gdb/testsuite/gdb.python/py-caller-is.exp | 2 +- gdb/testsuite/gdb.python/py-cmd-exception.exp | 2 +- gdb/testsuite/gdb.python/py-cmd-prompt.exp | 2 +- gdb/testsuite/gdb.python/py-cmd.exp | 2 +- gdb/testsuite/gdb.python/py-commands-breakpoint.exp | 2 +- gdb/testsuite/gdb.python/py-connection-removed.exp | 2 +- gdb/testsuite/gdb.python/py-connection.exp | 2 +- gdb/testsuite/gdb.python/py-event-load.exp | 4 ++-- gdb/testsuite/gdb.python/py-events.exp | 2 +- gdb/testsuite/gdb.python/py-evsignal.exp | 4 ++-- gdb/testsuite/gdb.python/py-evthreads.exp | 2 +- gdb/testsuite/gdb.python/py-exec-file.exp | 4 ++-- gdb/testsuite/gdb.python/py-explore-cc.exp | 2 +- gdb/testsuite/gdb.python/py-explore.exp | 2 +- .../gdb.python/py-finish-breakpoint-deletion.exp | 2 +- gdb/testsuite/gdb.python/py-finish-breakpoint.exp | 2 +- gdb/testsuite/gdb.python/py-finish-breakpoint2.exp | 2 +- gdb/testsuite/gdb.python/py-frame-args.exp | 4 ++-- gdb/testsuite/gdb.python/py-frame-inline.exp | 2 +- gdb/testsuite/gdb.python/py-frame.exp | 4 ++-- gdb/testsuite/gdb.python/py-framefilter-addr.exp | 2 +- gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp | 2 +- gdb/testsuite/gdb.python/py-framefilter-mi.exp | 4 ++-- gdb/testsuite/gdb.python/py-framefilter.exp | 4 ++-- gdb/testsuite/gdb.python/py-inferior.exp | 2 +- gdb/testsuite/gdb.python/py-infthread.exp | 2 +- gdb/testsuite/gdb.python/py-label-symbol-value.exp | 2 +- gdb/testsuite/gdb.python/py-lazy-string.exp | 4 ++-- gdb/testsuite/gdb.python/py-linetable-empty.exp | 2 +- gdb/testsuite/gdb.python/py-linetable.exp | 4 ++-- gdb/testsuite/gdb.python/py-mi-cmd.exp | 2 +- gdb/testsuite/gdb.python/py-mi-events.exp | 2 +- gdb/testsuite/gdb.python/py-mi-notify.exp | 2 +- gdb/testsuite/gdb.python/py-mi-objfile.exp | 2 +- .../gdb.python/py-mi-var-info-path-expression.exp | 2 +- gdb/testsuite/gdb.python/py-mi.exp | 8 ++++---- gdb/testsuite/gdb.python/py-missing-debug.exp | 4 ++-- gdb/testsuite/gdb.python/py-nested-maps.exp | 4 ++-- gdb/testsuite/gdb.python/py-objfile-script.exp | 2 +- gdb/testsuite/gdb.python/py-objfile.exp | 4 ++-- gdb/testsuite/gdb.python/py-pending-frame-level.exp | 2 +- gdb/testsuite/gdb.python/py-pp-cast.exp | 4 ++-- gdb/testsuite/gdb.python/py-pp-integral.exp | 4 ++-- gdb/testsuite/gdb.python/py-pp-maint.exp | 4 ++-- gdb/testsuite/gdb.python/py-pp-re-notag.exp | 4 ++-- gdb/testsuite/gdb.python/py-pp-registration.exp | 4 ++-- gdb/testsuite/gdb.python/py-prettyprint-stub.exp | 2 +- gdb/testsuite/gdb.python/py-progspace-events.exp | 2 +- gdb/testsuite/gdb.python/py-progspace.exp | 2 +- gdb/testsuite/gdb.python/py-prompt.exp | 2 +- gdb/testsuite/gdb.python/py-read-memory-leak.exp | 2 +- gdb/testsuite/gdb.python/py-record-btrace-threads.exp | 4 ++-- gdb/testsuite/gdb.python/py-record-btrace.exp | 2 +- gdb/testsuite/gdb.python/py-record-full.exp | 2 +- gdb/testsuite/gdb.python/py-recurse-unwind.exp | 2 +- gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp | 2 +- gdb/testsuite/gdb.python/py-send-packet.exp | 2 +- gdb/testsuite/gdb.python/py-shared.exp | 4 ++-- gdb/testsuite/gdb.python/py-strfns.exp | 2 +- gdb/testsuite/gdb.python/py-sym-artificial.exp | 4 ++-- gdb/testsuite/gdb.python/py-symbol.exp | 4 ++-- gdb/testsuite/gdb.python/py-symtab.exp | 2 +- gdb/testsuite/gdb.python/py-sync-interp.exp | 2 +- gdb/testsuite/gdb.python/py-template.exp | 2 +- gdb/testsuite/gdb.python/py-thread-exited.exp | 4 ++-- gdb/testsuite/gdb.python/py-thrhandle.exp | 2 +- gdb/testsuite/gdb.python/py-typeprint.exp | 2 +- gdb/testsuite/gdb.python/py-unwind-inline.exp | 2 +- gdb/testsuite/gdb.python/py-unwind-maint.exp | 4 ++-- gdb/testsuite/gdb.python/py-unwind-user-regs.exp | 2 +- gdb/testsuite/gdb.python/py-unwind.exp | 2 +- gdb/testsuite/gdb.python/py-value-cc.exp | 2 +- gdb/testsuite/gdb.python/py-value.exp | 2 +- gdb/testsuite/gdb.python/py-varobj.exp | 2 +- gdb/testsuite/gdb.python/py-watchpoint.exp | 2 +- gdb/testsuite/gdb.python/py-xmethods.exp | 2 +- gdb/testsuite/gdb.python/python.exp | 2 +- gdb/testsuite/gdb.python/tui-window-disabled.exp | 2 +- gdb/testsuite/gdb.python/tui-window.exp | 2 +- 92 files changed, 122 insertions(+), 122 deletions(-) diff --git a/gdb/testsuite/gdb.python/lib-types.exp b/gdb/testsuite/gdb.python/lib-types.exp index f871abc633a5..aa281c6443d5 100644 --- a/gdb/testsuite/gdb.python/lib-types.exp +++ b/gdb/testsuite/gdb.python/lib-types.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp index c9846b877ac3..52162fc99522 100644 --- a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp +++ b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp @@ -23,11 +23,11 @@ require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } { untested "failed to compile" - return -1 + return } # This proc restarts GDB, makes the inferior reach the desired spot - marked # by a comment in the .c file - and turns on the pretty printer for testing. # Starting with a new GDB is important because the test may crash GDB. The diff --git a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp index 5c06ebff9426..6630143f0373 100644 --- a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp +++ b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp @@ -18,11 +18,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile py-arch.c if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-arch-reg-names.exp b/gdb/testsuite/gdb.python/py-arch-reg-names.exp index 954cbb77754a..7bbb171e13e1 100644 --- a/gdb/testsuite/gdb.python/py-arch-reg-names.exp +++ b/gdb/testsuite/gdb.python/py-arch-reg-names.exp @@ -18,11 +18,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile py-arch.c if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-arch.exp b/gdb/testsuite/gdb.python/py-arch.exp index 12b0e4a10c80..a2ac6ad4bfa1 100644 --- a/gdb/testsuite/gdb.python/py-arch.exp +++ b/gdb/testsuite/gdb.python/py-arch.exp @@ -15,11 +15,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-as-string.exp b/gdb/testsuite/gdb.python/py-as-string.exp index fd4d5d740f45..3dc858db1ada 100644 --- a/gdb/testsuite/gdb.python/py-as-string.exp +++ b/gdb/testsuite/gdb.python/py-as-string.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-auto-load-chaining.exp b/gdb/testsuite/gdb.python/py-auto-load-chaining.exp index 5033f21526cc..7a92ff0fac71 100644 --- a/gdb/testsuite/gdb.python/py-auto-load-chaining.exp +++ b/gdb/testsuite/gdb.python/py-auto-load-chaining.exp @@ -44,11 +44,11 @@ set remote_python_file [gdb_remote_download host \ set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}-f2.o-gdb.py] # Build the main test executable and start GDB. if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp index d4498dfc8cd8..9b8a10cf84f5 100644 --- a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp +++ b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp @@ -30,19 +30,19 @@ set python_autoload_file "${srcdir}/${subdir}/${libname}.so-gdb.py" set binfile_lib [standard_output_file "${libname}.so"] # Compile library. if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} \ {debug c++}] != "" } { - return -1 + return } # Compile main program. if { [gdb_compile ${srcdir}/${subdir}/${srcfile} \ ${binfile} \ executable \ [list debug c++ shlib=$binfile_lib]] != "" } { - return -1 + return } clean_restart # Make the -gdb.py script available to gdb, it is automatically loaded by diff --git a/gdb/testsuite/gdb.python/py-bad-printers.exp b/gdb/testsuite/gdb.python/py-bad-printers.exp index 70704c668118..a96030d6b483 100644 --- a/gdb/testsuite/gdb.python/py-bad-printers.exp +++ b/gdb/testsuite/gdb.python/py-bad-printers.exp @@ -21,15 +21,15 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } if {![runto_main]} { - return -1 + return } set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-block.exp b/gdb/testsuite/gdb.python/py-block.exp index e4e309da05f0..b0123c4d3b57 100644 --- a/gdb/testsuite/gdb.python/py-block.exp +++ b/gdb/testsuite/gdb.python/py-block.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-bp-locations.exp b/gdb/testsuite/gdb.python/py-bp-locations.exp index 00ff1c9912ac..879306ea0f24 100644 --- a/gdb/testsuite/gdb.python/py-bp-locations.exp +++ b/gdb/testsuite/gdb.python/py-bp-locations.exp @@ -18,19 +18,19 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {c++ debug}] != "" } { - return -1 + return } save_vars { GDBFLAGS } { clean_restart $testfile } if {![runto_main]} { - return -1 + return } # Build a regexp string that represents the __repr__ of a # gdb.BreakpointLocation object. Accepts arguments -enabled, -address, # -source, -line, and -func. @@ -78,11 +78,11 @@ gdb_test "python print(gdb.breakpoints()\[1\].locations\[0\])" \ -line "$expected_line_a" -func ".*"] \ "check repr of disabled breakpoint location" gdb_continue_to_breakpoint "" ".*25.*" if {![runto_main]} { - return -1 + return } gdb_breakpoint "add" # Disable "add" owner breakpoint and verify all locations still are enabled. gdb_test "python gdb.breakpoints()\[1\].enabled = False" "" "Disable add owner breakpoint." diff --git a/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp b/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp index 74983a899bdc..0b9d493ada29 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } clean_restart "${testfile}" if {![runto_main]} { return diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index 4215f3ca1de0..692d55eb0a21 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint.exp @@ -31,11 +31,11 @@ require allow_python_tests standard_testfile set options {debug c++} if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${options}] } { - return -1 + return } set past_throw_catch_line [gdb_get_line_number "Past throw-catch."] # Build a regexp string that can match against the repr of a gdb.Breakpoint diff --git a/gdb/testsuite/gdb.python/py-caller-is.exp b/gdb/testsuite/gdb.python/py-caller-is.exp index e512b97d5169..e195e42a8ca6 100644 --- a/gdb/testsuite/gdb.python/py-caller-is.exp +++ b/gdb/testsuite/gdb.python/py-caller-is.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-cmd-exception.exp b/gdb/testsuite/gdb.python/py-cmd-exception.exp index 51c35f32ac9e..789a8b15c3e0 100644 --- a/gdb/testsuite/gdb.python/py-cmd-exception.exp +++ b/gdb/testsuite/gdb.python/py-cmd-exception.exp @@ -22,11 +22,11 @@ load_lib gdb-python.exp require !use_gdb_stub allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] gdb_test_no_output "source $pyfile" "source the script" diff --git a/gdb/testsuite/gdb.python/py-cmd-prompt.exp b/gdb/testsuite/gdb.python/py-cmd-prompt.exp index a83c52ae1214..5b81d88bbe71 100644 --- a/gdb/testsuite/gdb.python/py-cmd-prompt.exp +++ b/gdb/testsuite/gdb.python/py-cmd-prompt.exp @@ -26,11 +26,11 @@ require !use_gdb_stub require allow_python_tests allow_gdbserver_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } set bp_line [gdb_get_line_number "break-here"] gdb_breakpoint $bp_line diff --git a/gdb/testsuite/gdb.python/py-cmd.exp b/gdb/testsuite/gdb.python/py-cmd.exp index be5c955e29b1..766a594d2f49 100644 --- a/gdb/testsuite/gdb.python/py-cmd.exp +++ b/gdb/testsuite/gdb.python/py-cmd.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-commands-breakpoint.exp b/gdb/testsuite/gdb.python/py-commands-breakpoint.exp index ba2de2f68db7..2b3842c816f6 100644 --- a/gdb/testsuite/gdb.python/py-commands-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-commands-breakpoint.exp @@ -20,11 +20,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile .c .py if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { - return -1 + return } if { ![runto_main] } { return 0 } diff --git a/gdb/testsuite/gdb.python/py-connection-removed.exp b/gdb/testsuite/gdb.python/py-connection-removed.exp index f2027043761b..abe3f78d73b1 100644 --- a/gdb/testsuite/gdb.python/py-connection-removed.exp +++ b/gdb/testsuite/gdb.python/py-connection-removed.exp @@ -28,11 +28,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile py-connection.c if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return } diff --git a/gdb/testsuite/gdb.python/py-connection.exp b/gdb/testsuite/gdb.python/py-connection.exp index 3045e9817312..e520e91368aa 100644 --- a/gdb/testsuite/gdb.python/py-connection.exp +++ b/gdb/testsuite/gdb.python/py-connection.exp @@ -23,11 +23,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-event-load.exp b/gdb/testsuite/gdb.python/py-event-load.exp index 8e4f8d2992bf..a0ba644a7f67 100644 --- a/gdb/testsuite/gdb.python/py-event-load.exp +++ b/gdb/testsuite/gdb.python/py-event-load.exp @@ -22,20 +22,20 @@ require allow_shlib_tests allow_python_tests standard_testfile .c if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable {debug shlib_load}] != ""} { untested "failed to compile" - return -1 + return } set testfile2 py-events-shlib set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}.so] if {[gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" \ ${binfile2} {debug}] != ""} { untested "failed to compile shared library" - return -1 + return } set binfile2_dlopen [gdb_download_shlib $binfile2] clean_restart $testfile diff --git a/gdb/testsuite/gdb.python/py-events.exp b/gdb/testsuite/gdb.python/py-events.exp index 1e0513b997bf..1177dd54e482 100644 --- a/gdb/testsuite/gdb.python/py-events.exp +++ b/gdb/testsuite/gdb.python/py-events.exp @@ -26,11 +26,11 @@ standard_testfile set exec_opts [list debug shlib=$lib_sl] if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != "" || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} { untested "failed to compile" - return -1 + return } # Start with a fresh gdb. clean_restart ${testfile} diff --git a/gdb/testsuite/gdb.python/py-evsignal.exp b/gdb/testsuite/gdb.python/py-evsignal.exp index e91f9af8f159..e9d4d2aa442f 100644 --- a/gdb/testsuite/gdb.python/py-evsignal.exp +++ b/gdb/testsuite/gdb.python/py-evsignal.exp @@ -14,21 +14,21 @@ # along with this program. If not, see . if {[gdb_protocol_is_remote]} { # RuntimeError: Could not find event thread kfail "python/12966" "Signal Thread 3" - return -1 + return } load_lib gdb-python.exp require allow_python_tests standard_testfile py-evthreads.c if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - return -1 + return } clean_restart $testfile set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-events.py] gdb_test_no_output "source ${pyfile}" "load python file" diff --git a/gdb/testsuite/gdb.python/py-evthreads.exp b/gdb/testsuite/gdb.python/py-evthreads.exp index 1ab5b58c03c2..09efc3adb3a4 100644 --- a/gdb/testsuite/gdb.python/py-evthreads.exp +++ b/gdb/testsuite/gdb.python/py-evthreads.exp @@ -18,11 +18,11 @@ require support_displaced_stepping allow_python_tests load_lib gdb-python.exp standard_testfile if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - return -1 + return } save_vars { GDBFLAGS } { append GDBFLAGS " -ex \"set non-stop on\"" clean_restart $testfile diff --git a/gdb/testsuite/gdb.python/py-exec-file.exp b/gdb/testsuite/gdb.python/py-exec-file.exp index 180de990f5ba..6a73efc406ad 100644 --- a/gdb/testsuite/gdb.python/py-exec-file.exp +++ b/gdb/testsuite/gdb.python/py-exec-file.exp @@ -24,16 +24,16 @@ set binfile1 [standard_output_file $testfile1] set testfile2 $testfile-b set binfile2 [standard_output_file $testfile2] if {[build_executable "failed to prepare first executable" \ $binfile1 $srcfile]} { - return -1 + return } if {[build_executable "failed to prepare second executable" \ $binfile2 $srcfile]} { - return -1 + return } set binfile1 [gdb_remote_download host $binfile1] set binfile2 [gdb_remote_download host $binfile2] diff --git a/gdb/testsuite/gdb.python/py-explore-cc.exp b/gdb/testsuite/gdb.python/py-explore-cc.exp index 7c04b227cfc0..772886b931f9 100644 --- a/gdb/testsuite/gdb.python/py-explore-cc.exp +++ b/gdb/testsuite/gdb.python/py-explore-cc.exp @@ -19,11 +19,11 @@ require allow_cplus_tests allow_python_tests standard_testfile py-explore.cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set int_ptr_ref_desc "The value of 'int_ptr_ref' is of type 'int_ptr' which is a typedef of type 'int \\*'.*\'int_ptr_ref' is a pointer to a value of type 'int'.*" set b_desc "The value of 'b' is a struct/class of type 'B' with the following fields:.*\ diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp index 78df5b9314fe..276148da8f10 100644 --- a/gdb/testsuite/gdb.python/py-explore.exp +++ b/gdb/testsuite/gdb.python/py-explore.exp @@ -16,11 +16,11 @@ standard_testfile require allow_python_tests if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } set SS "struct SimpleStruct" set SU "union SimpleUnion" set CS "struct ComplexStruct" diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp index 52be47b68cf7..627c9d0b6ef5 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp @@ -20,11 +20,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { - return -1 + return } if {![runto_main]} { return } diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp index eb0790523e82..043416c724cc 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp @@ -29,11 +29,11 @@ standard_testfile set exec_opts [list debug shlib=$lib_sl] if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != "" || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} { untested "failed to compile" - return -1 + return } # Start with a fresh gdb. clean_restart ${testfile} diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp index 86a876650ee3..d782c577cfc1 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-frame-args.exp b/gdb/testsuite/gdb.python/py-frame-args.exp index ae688b2cc753..3129c90ae401 100644 --- a/gdb/testsuite/gdb.python/py-frame-args.exp +++ b/gdb/testsuite/gdb.python/py-frame-args.exp @@ -16,15 +16,15 @@ standard_testfile require allow_python_tests if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { - return -1 + return } set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-frame-inline.exp b/gdb/testsuite/gdb.python/py-frame-inline.exp index f007a2ca4aa1..a44136990c02 100644 --- a/gdb/testsuite/gdb.python/py-frame-inline.exp +++ b/gdb/testsuite/gdb.python/py-frame-inline.exp @@ -18,11 +18,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp index dd0b948581c7..92a0ef3f7ebb 100644 --- a/gdb/testsuite/gdb.python/py-frame.exp +++ b/gdb/testsuite/gdb.python/py-frame.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } # The following tests require execution. if {![runto_main]} { @@ -204,11 +204,11 @@ gdb_test "python print(gdb.selected_frame().read_register(bad_object))" \ "test Frame.read_register with bad_type object" # Compile again without debug info. gdb_exit if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-framefilter-addr.exp b/gdb/testsuite/gdb.python/py-framefilter-addr.exp index 087da1b690f9..3c0436ce1972 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-addr.exp +++ b/gdb/testsuite/gdb.python/py-framefilter-addr.exp @@ -22,11 +22,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp index 7cd5e2e66536..8a4bf001a694 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp +++ b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp @@ -22,11 +22,11 @@ standard_testfile amd64-py-framefilter-invalidarg.S require is_x86_64_m64_target # We cannot use prepare_for_testing as we have to set the safe-patch # to check objfile and progspace printers. if {[build_executable $testfile.exp $testfile $srcfile {}] == -1} { - return -1 + return } # Start with a fresh gdb. gdb_exit gdb_start diff --git a/gdb/testsuite/gdb.python/py-framefilter-mi.exp b/gdb/testsuite/gdb.python/py-framefilter-mi.exp index 7b091b8f3652..3b4cedba0918 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-mi.exp +++ b/gdb/testsuite/gdb.python/py-framefilter-mi.exp @@ -23,20 +23,20 @@ set MIFLAGS "-i=mi2" standard_testfile py-framefilter-mi.c set pyfile py-framefilter.py if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { return } if {[lsearch -exact [mi_get_features] python] < 0} { unsupported "python support is disabled" - return -1 + return } mi_runto_main set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}] diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp index 292b72d66dc7..a993ac5d54fd 100644 --- a/gdb/testsuite/gdb.python/py-framefilter.exp +++ b/gdb/testsuite/gdb.python/py-framefilter.exp @@ -23,11 +23,11 @@ require allow_python_tests standard_testfile # We cannot use prepare_for_testing as we have to set the safe-patch # to check objfile and progspace printers. if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { - return -1 + return } # Start with a fresh gdb. gdb_exit gdb_start @@ -281,11 +281,11 @@ gdb_test "bt 1" "Quit" "bt 1 with KeyboardInterrupt" # Test with no debuginfo # We cannot use prepare_for_testing as we have to set the safe-patch # to check objfile and progspace printers. if {[build_executable $testfile.exp $testfile $srcfile {nodebug}] == -1} { - return -1 + return } # Start with a fresh gdb. gdb_exit gdb_start diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp index 0c27da1a7a4e..8479427f726a 100644 --- a/gdb/testsuite/gdb.python/py-inferior.exp +++ b/gdb/testsuite/gdb.python/py-inferior.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug}] != "" } { - return -1 + return } # Start with a fresh gdb. save_vars { env(ASAN_OPTIONS) env(TSAN_OPTIONS) } { # The call to gdb.selected_inferior().read_memory (0, 0xffffffffffffffff) diff --git a/gdb/testsuite/gdb.python/py-infthread.exp b/gdb/testsuite/gdb.python/py-infthread.exp index 5859fff284cd..65ccc8f9a9e8 100644 --- a/gdb/testsuite/gdb.python/py-infthread.exp +++ b/gdb/testsuite/gdb.python/py-infthread.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } gdb_test_multiline "install new_thread event handler" \ "python" "" \ "seen_a_thread = False" "" \ diff --git a/gdb/testsuite/gdb.python/py-label-symbol-value.exp b/gdb/testsuite/gdb.python/py-label-symbol-value.exp index b4d598773989..c97ae72ec58d 100644 --- a/gdb/testsuite/gdb.python/py-label-symbol-value.exp +++ b/gdb/testsuite/gdb.python/py-label-symbol-value.exp @@ -19,11 +19,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-lazy-string.exp b/gdb/testsuite/gdb.python/py-lazy-string.exp index aabcc3be6e50..87d8eea46546 100644 --- a/gdb/testsuite/gdb.python/py-lazy-string.exp +++ b/gdb/testsuite/gdb.python/py-lazy-string.exp @@ -21,15 +21,15 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile 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"] gdb_continue_to_breakpoint "break here" diff --git a/gdb/testsuite/gdb.python/py-linetable-empty.exp b/gdb/testsuite/gdb.python/py-linetable-empty.exp index 6113d35c1e37..651fe9b6dbf3 100644 --- a/gdb/testsuite/gdb.python/py-linetable-empty.exp +++ b/gdb/testsuite/gdb.python/py-linetable-empty.exp @@ -37,11 +37,11 @@ Dwarf::assemble $asm_file { } } if { [prepare_for_testing "failed to prepare" ${testfile} \ [list $srcfile $asm_file] {nodebug}] } { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-linetable.exp b/gdb/testsuite/gdb.python/py-linetable.exp index 1e4402a089f2..5290c4a9beac 100644 --- a/gdb/testsuite/gdb.python/py-linetable.exp +++ b/gdb/testsuite/gdb.python/py-linetable.exp @@ -25,15 +25,15 @@ if {[info exists COMPILE]} { } else { require is_x86_64_m64_target } if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_py_test_silent_cmd "python lt = gdb.selected_frame().find_sal().symtab.linetable()" \ "get instruction" 0 diff --git a/gdb/testsuite/gdb.python/py-mi-cmd.exp b/gdb/testsuite/gdb.python/py-mi-cmd.exp index e13da6a31404..b66a73c331f5 100644 --- a/gdb/testsuite/gdb.python/py-mi-cmd.exp +++ b/gdb/testsuite/gdb.python/py-mi-cmd.exp @@ -23,11 +23,11 @@ if {[mi_gdb_start]} { return } if {[lsearch -exact [mi_get_features] python] < 0} { unsupported "python support is disabled" - return -1 + return } standard_testfile mi_gdb_test "set python print-stack full" \ diff --git a/gdb/testsuite/gdb.python/py-mi-events.exp b/gdb/testsuite/gdb.python/py-mi-events.exp index a6c724e0c4d5..a2314aed3221 100644 --- a/gdb/testsuite/gdb.python/py-mi-events.exp +++ b/gdb/testsuite/gdb.python/py-mi-events.exp @@ -24,11 +24,11 @@ standard_testfile set pyfile ${testfile}-gdb.py if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}] if {[mi_clean_restart]} { diff --git a/gdb/testsuite/gdb.python/py-mi-notify.exp b/gdb/testsuite/gdb.python/py-mi-notify.exp index 220c5ca0babe..b08a667ae846 100644 --- a/gdb/testsuite/gdb.python/py-mi-notify.exp +++ b/gdb/testsuite/gdb.python/py-mi-notify.exp @@ -23,11 +23,11 @@ if {[mi_gdb_start]} { return } if {[lsearch -exact [mi_get_features] python] < 0} { unsupported "python support is disabled" - return -1 + return } standard_testfile mi_gdb_test "set python print-stack full" \ diff --git a/gdb/testsuite/gdb.python/py-mi-objfile.exp b/gdb/testsuite/gdb.python/py-mi-objfile.exp index 4c8846981eb9..99cd6b750a7c 100644 --- a/gdb/testsuite/gdb.python/py-mi-objfile.exp +++ b/gdb/testsuite/gdb.python/py-mi-objfile.exp @@ -23,11 +23,11 @@ require allow_python_tests standard_testfile set pyfile ${testfile}-gdb.py if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "failed to compile" - return -1 + return } # Make the -gdb.py script available to gdb, it is automagically loaded by gdb. # Care is taken to put it in the same directory as the binary so that # gdb will find it. diff --git a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp index dd97de3be677..f300efe9caea 100644 --- a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp +++ b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp @@ -24,11 +24,11 @@ require allow_python_tests # Start here # standard_testfile if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } { - return -1 + return } mi_clean_restart $::testfile set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp index 73b351e58ccb..51025653b620 100644 --- a/gdb/testsuite/gdb.python/py-mi.exp +++ b/gdb/testsuite/gdb.python/py-mi.exp @@ -21,20 +21,20 @@ set MIFLAGS "-i=mi2" standard_testfile py-prettyprint.c set pyfile py-prettyprint.py if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } { untested "failed to compile" - return -1 + return } if {[mi_clean_restart $::testfile]} { return } if {[lsearch -exact [mi_get_features] python] < 0} { unsupported "python support is disabled" - return -1 + return } mi_runto_main set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}] @@ -340,20 +340,20 @@ mi_gdb_test "-var-update c" \ # C++ MI tests gdb_exit if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-cxx" \ executable {debug c++ additional_flags=-DMI}] != "" } { untested "failed to compile in C++ mode" - return -1 + return } if {[mi_clean_restart ${::testfile}-cxx]} { return } if {[lsearch -exact [mi_get_features] python] < 0} { unsupported "python support is disabled" - return -1 + return } with_test_prefix "varobj fake" { mi_runto_main mi_continue_to_line \ diff --git a/gdb/testsuite/gdb.python/py-missing-debug.exp b/gdb/testsuite/gdb.python/py-missing-debug.exp index 2aebebd453c7..256e3e955c77 100644 --- a/gdb/testsuite/gdb.python/py-missing-debug.exp +++ b/gdb/testsuite/gdb.python/py-missing-debug.exp @@ -19,18 +19,18 @@ require allow_python_tests standard_testfile if {[build_executable "failed to prepare" ${testfile} ${srcfile} \ {debug build-id}]} { - return -1 + return } # Remove debug information from BINFILE and place it into # BINFILE.debug. if {[gdb_gnu_strip_debug $binfile]} { unsupported "cannot produce separate debug info files" - return -1 + return } set remote_python_file \ [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-nested-maps.exp b/gdb/testsuite/gdb.python/py-nested-maps.exp index 7869c9138d52..f73829cb09a9 100644 --- a/gdb/testsuite/gdb.python/py-nested-maps.exp +++ b/gdb/testsuite/gdb.python/py-nested-maps.exp @@ -22,15 +22,15 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] gdb_continue_to_breakpoint "run to testing point" ".*Break here.*" diff --git a/gdb/testsuite/gdb.python/py-objfile-script.exp b/gdb/testsuite/gdb.python/py-objfile-script.exp index 099a9986cfd7..c22163ae3565 100644 --- a/gdb/testsuite/gdb.python/py-objfile-script.exp +++ b/gdb/testsuite/gdb.python/py-objfile-script.exp @@ -19,11 +19,11 @@ standard_testfile require allow_python_tests if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { - return -1 + return } # Start with a fresh gdb. gdb_exit gdb_start diff --git a/gdb/testsuite/gdb.python/py-objfile.exp b/gdb/testsuite/gdb.python/py-objfile.exp index e823efbf3b15..0127b82936cb 100644 --- a/gdb/testsuite/gdb.python/py-objfile.exp +++ b/gdb/testsuite/gdb.python/py-objfile.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } @@ -114,11 +114,11 @@ gdb_test "python print(objfile.username)" "None" \ "objfile.username after objfile is unloaded" # Now build another copy of the testcase, this time without debug info. if { [prepare_for_testing "failed to prepare" ${testfile}2 ${srcfile} {nodebug ldflags=-Wl,--strip-debug}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-pending-frame-level.exp b/gdb/testsuite/gdb.python/py-pending-frame-level.exp index 8fc1d2653b15..204c7c36c54b 100644 --- a/gdb/testsuite/gdb.python/py-pending-frame-level.exp +++ b/gdb/testsuite/gdb.python/py-pending-frame-level.exp @@ -20,11 +20,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-pp-cast.exp b/gdb/testsuite/gdb.python/py-pp-cast.exp index 0184565872df..fe14a9a430f5 100644 --- a/gdb/testsuite/gdb.python/py-pp-cast.exp +++ b/gdb/testsuite/gdb.python/py-pp-cast.exp @@ -20,15 +20,15 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto break_function]} { - return -1 + return } set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-pp-integral.exp b/gdb/testsuite/gdb.python/py-pp-integral.exp index 73dd86f4ea76..190af2b219d1 100644 --- a/gdb/testsuite/gdb.python/py-pp-integral.exp +++ b/gdb/testsuite/gdb.python/py-pp-integral.exp @@ -16,15 +16,15 @@ standard_testfile require allow_python_tests if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto tick_tock]} { - return -1 + return } set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-pp-maint.exp b/gdb/testsuite/gdb.python/py-pp-maint.exp index 7f3659450db6..8bb537c8d0e6 100644 --- a/gdb/testsuite/gdb.python/py-pp-maint.exp +++ b/gdb/testsuite/gdb.python/py-pp-maint.exp @@ -23,15 +23,15 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \ ".*Breakpoint.*" gdb_test "continue" ".*Breakpoint.*" diff --git a/gdb/testsuite/gdb.python/py-pp-re-notag.exp b/gdb/testsuite/gdb.python/py-pp-re-notag.exp index 73dd86f4ea76..190af2b219d1 100644 --- a/gdb/testsuite/gdb.python/py-pp-re-notag.exp +++ b/gdb/testsuite/gdb.python/py-pp-re-notag.exp @@ -16,15 +16,15 @@ standard_testfile require allow_python_tests if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto tick_tock]} { - return -1 + return } set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-pp-registration.exp b/gdb/testsuite/gdb.python/py-pp-registration.exp index ed65ed87a281..3d974b2120b6 100644 --- a/gdb/testsuite/gdb.python/py-pp-registration.exp +++ b/gdb/testsuite/gdb.python/py-pp-registration.exp @@ -21,18 +21,18 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] if {![runto_main ]} { - return -1 + return } proc prepare_test { } { global testfile remote_python_file diff --git a/gdb/testsuite/gdb.python/py-prettyprint-stub.exp b/gdb/testsuite/gdb.python/py-prettyprint-stub.exp index 49723980a0b1..491e8c369596 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint-stub.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint-stub.exp @@ -27,11 +27,11 @@ set srcfiles [list $srcfile $srcfile2] if { [build_executable_from_specs \ "failed to prepare" \ $testfile {c++} \ $srcfile {c++ debug} \ $srcfile2 {c++}] == -1 } { - return -1 + return } # Start with a fresh gdb. clean_restart $testfile diff --git a/gdb/testsuite/gdb.python/py-progspace-events.exp b/gdb/testsuite/gdb.python/py-progspace-events.exp index 143fa17126b8..c07a659910fa 100644 --- a/gdb/testsuite/gdb.python/py-progspace-events.exp +++ b/gdb/testsuite/gdb.python/py-progspace-events.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[prepare_for_testing "preparing" $testfile $srcfile] == -1} { - return -1 + return } set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-progspace-events.py] gdb_test_no_output "source ${pyfile}" "load python file" diff --git a/gdb/testsuite/gdb.python/py-progspace.exp b/gdb/testsuite/gdb.python/py-progspace.exp index d11bb941acbf..b3fc203c4b98 100644 --- a/gdb/testsuite/gdb.python/py-progspace.exp +++ b/gdb/testsuite/gdb.python/py-progspace.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { - return -1 + return } clean_restart gdb_test "python print (gdb.current_progspace().filename)" "None" \ diff --git a/gdb/testsuite/gdb.python/py-prompt.exp b/gdb/testsuite/gdb.python/py-prompt.exp index 60186f71db69..cc149ae62303 100644 --- a/gdb/testsuite/gdb.python/py-prompt.exp +++ b/gdb/testsuite/gdb.python/py-prompt.exp @@ -22,11 +22,11 @@ load_lib gdb-python.exp load_lib prompt.exp require allow_python_tests if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { - return -1 + return } save_vars { INTERNAL_GDBFLAGS GDBFLAGS } { set INTERNAL_GDBFLAGS [string map {"-q" ""} $INTERNAL_GDBFLAGS] diff --git a/gdb/testsuite/gdb.python/py-read-memory-leak.exp b/gdb/testsuite/gdb.python/py-read-memory-leak.exp index e7fcbf79b37d..58343126e67c 100644 --- a/gdb/testsuite/gdb.python/py-read-memory-leak.exp +++ b/gdb/testsuite/gdb.python/py-read-memory-leak.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp index 0b3115a5a6dd..995e733a4aab 100644 --- a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp +++ b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp @@ -21,16 +21,16 @@ require allow_btrace_tests allow_python_tests standard_testfile if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug} ] != "" } { untested "failed to prepare" - return -1 + return } clean_restart $testfile if { ![runto_main] } { - return -1 + return } # set up breakpoints gdb_breakpoint $srcfile:[gdb_get_line_number "bp1" $srcfile] gdb_breakpoint $srcfile:[gdb_get_line_number "bp2" $srcfile] diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp index ade569c480c7..4e324e71fc09 100644 --- a/gdb/testsuite/gdb.python/py-record-btrace.exp +++ b/gdb/testsuite/gdb.python/py-record-btrace.exp @@ -24,11 +24,11 @@ load_lib gdb-python.exp standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 } if {![runto_main]} { - return -1 + return } with_test_prefix "no or double record" { gdb_test "python print(gdb.current_recording())" "None" diff --git a/gdb/testsuite/gdb.python/py-record-full.exp b/gdb/testsuite/gdb.python/py-record-full.exp index 125cecebfd25..95640770e9a5 100644 --- a/gdb/testsuite/gdb.python/py-record-full.exp +++ b/gdb/testsuite/gdb.python/py-record-full.exp @@ -24,11 +24,11 @@ load_lib gdb-python.exp standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 } if {![runto_main]} { - return -1 + return } with_test_prefix "no or double record" { gdb_test "python print(gdb.current_recording())" "None" diff --git a/gdb/testsuite/gdb.python/py-recurse-unwind.exp b/gdb/testsuite/gdb.python/py-recurse-unwind.exp index fbb538f39064..4df47a6e8b4b 100644 --- a/gdb/testsuite/gdb.python/py-recurse-unwind.exp +++ b/gdb/testsuite/gdb.python/py-recurse-unwind.exp @@ -27,11 +27,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] gdb_test "source ${pyfile}" "Python script imported" \ diff --git a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp index 2b2fe112d9e5..576fd5a85d3d 100644 --- a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp +++ b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp @@ -21,11 +21,11 @@ require allow_cplus_tests allow_python_tests standard_testfile .cc if {[prepare_for_testing $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=c++11"}]} { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-send-packet.exp b/gdb/testsuite/gdb.python/py-send-packet.exp index b0ca70e61a65..4464c1c5123b 100644 --- a/gdb/testsuite/gdb.python/py-send-packet.exp +++ b/gdb/testsuite/gdb.python/py-send-packet.exp @@ -25,11 +25,11 @@ load_lib gdbserver-support.exp standard_testfile require allow_gdbserver_tests allow_python_tests if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } # Make sure we're disconnected, in case we're testing with an # extended-remote board, therefore already connected. gdb_test "disconnect" ".*" diff --git a/gdb/testsuite/gdb.python/py-shared.exp b/gdb/testsuite/gdb.python/py-shared.exp index 6b8f0f0c1bde..0eef359d0b87 100644 --- a/gdb/testsuite/gdb.python/py-shared.exp +++ b/gdb/testsuite/gdb.python/py-shared.exp @@ -25,18 +25,18 @@ set libfile "py-shared-sl" set libsrc ${libfile}.c set library [standard_output_file ${libfile}.sl] if { [gdb_compile_shlib ${srcdir}/${subdir}/${libsrc} ${library} "debug"] != "" } { untested "failed to compile shared library" - return -1 + return } set exec_opts [list debug shlib=${library}] if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } { untested "failed to compile" - return -1 + return } # Start with a fresh gdb. clean_restart $testfile gdb_load_shlib ${library} diff --git a/gdb/testsuite/gdb.python/py-strfns.exp b/gdb/testsuite/gdb.python/py-strfns.exp index 79de2c4d8357..539ba984db02 100644 --- a/gdb/testsuite/gdb.python/py-strfns.exp +++ b/gdb/testsuite/gdb.python/py-strfns.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-sym-artificial.exp b/gdb/testsuite/gdb.python/py-sym-artificial.exp index e0592bc068b6..1ea2ea4a13fb 100644 --- a/gdb/testsuite/gdb.python/py-sym-artificial.exp +++ b/gdb/testsuite/gdb.python/py-sym-artificial.exp @@ -47,15 +47,15 @@ Dwarf::assemble $asm_file { } } if {[prepare_for_testing "failed to prepare" ${testfile} \ [list $srcfile $asm_file] {nodebug}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_py_test_silent_cmd "python v = gdb.lookup_symbol('the_variable')" \ "get variable" 1 gdb_test "python print(v\[0\].is_artificial)" True \ diff --git a/gdb/testsuite/gdb.python/py-symbol.exp b/gdb/testsuite/gdb.python/py-symbol.exp index 7d172d792e9f..90e724ca0313 100644 --- a/gdb/testsuite/gdb.python/py-symbol.exp +++ b/gdb/testsuite/gdb.python/py-symbol.exp @@ -23,11 +23,11 @@ require allow_python_tests standard_testfile py-symbol.c py-symbol-2.c py-symbol-3.c set opts { debug additional_flags=-DUSE_TWO_FILES } if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3] $opts]} { - return -1 + return } set readnow_p [readnow] # Check that we find all static symbols before the inferior has @@ -194,11 +194,11 @@ gdb_test "python print (t\[0\].symtab)" "${py_symbol_c}" "get symtab" lappend opts c++ set testfile $testfile-cxx set binfile [standard_output_file $testfile] if { [prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] $opts] } { - return -1 + return } gdb_test "python print (gdb.lookup_global_symbol ('(anonymous namespace)::anon') is None)" \ "True" "anon is None" gdb_test "python print (gdb.lookup_static_symbol ('(anonymous namespace)::anon').value ())" \ diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp index 7a426faf3a57..786bdc75fc4d 100644 --- a/gdb/testsuite/gdb.python/py-symtab.exp +++ b/gdb/testsuite/gdb.python/py-symtab.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile py-symbol.c if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-sync-interp.exp b/gdb/testsuite/gdb.python/py-sync-interp.exp index 4323ee0443e5..5fb67b1eb5b4 100644 --- a/gdb/testsuite/gdb.python/py-sync-interp.exp +++ b/gdb/testsuite/gdb.python/py-sync-interp.exp @@ -23,11 +23,11 @@ standard_testfile require can_spawn_for_attach allow_python_tests load_lib gdb-python.exp if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } set test_spawn_id [spawn_wait_for_attach $binfile] set testpid [spawn_id_get_pid $test_spawn_id] diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.python/py-template.exp index 1bf3604e98fa..9099e7e32dc0 100644 --- a/gdb/testsuite/gdb.python/py-template.exp +++ b/gdb/testsuite/gdb.python/py-template.exp @@ -20,11 +20,11 @@ require allow_cplus_tests allow_python_tests standard_testfile .cc if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ {debug c++}] != "" } { untested "failed to compile" - return -1 + return } clean_restart proc test_template_arg {exefile type} { diff --git a/gdb/testsuite/gdb.python/py-thread-exited.exp b/gdb/testsuite/gdb.python/py-thread-exited.exp index 862adeb4587d..908af96d9d5b 100644 --- a/gdb/testsuite/gdb.python/py-thread-exited.exp +++ b/gdb/testsuite/gdb.python/py-thread-exited.exp @@ -18,11 +18,11 @@ require allow_python_tests load_lib gdb-python.exp standard_testfile if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - return -1 + return } save_vars { GDBFLAGS } { clean_restart $testfile } @@ -31,11 +31,11 @@ set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-thread-exited.py] gdb_test_no_output "source ${pyfile}" "load python file" gdb_test "test-events" "Event testers registered." if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "In thread" ${testfile}.c] gdb_breakpoint [gdb_get_line_number "Done" ${testfile}.c] diff --git a/gdb/testsuite/gdb.python/py-thrhandle.exp b/gdb/testsuite/gdb.python/py-thrhandle.exp index 2aeb7777f0d3..3c9effc8d6be 100644 --- a/gdb/testsuite/gdb.python/py-thrhandle.exp +++ b/gdb/testsuite/gdb.python/py-thrhandle.exp @@ -24,11 +24,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } { - return -1 + return } clean_restart ${::testfile} runto_main diff --git a/gdb/testsuite/gdb.python/py-typeprint.exp b/gdb/testsuite/gdb.python/py-typeprint.exp index f8ccdbf49544..ab53f26d8172 100644 --- a/gdb/testsuite/gdb.python/py-typeprint.exp +++ b/gdb/testsuite/gdb.python/py-typeprint.exp @@ -19,11 +19,11 @@ load_lib gdb-python.exp load_lib cp-support.exp standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-unwind-inline.exp b/gdb/testsuite/gdb.python/py-unwind-inline.exp index 0f63e4310f71..ef9b00eccc8b 100644 --- a/gdb/testsuite/gdb.python/py-unwind-inline.exp +++ b/gdb/testsuite/gdb.python/py-unwind-inline.exp @@ -22,11 +22,11 @@ require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ debug] } { - return -1 + return } # The following tests require execution. if {![runto_main]} { return 0 diff --git a/gdb/testsuite/gdb.python/py-unwind-maint.exp b/gdb/testsuite/gdb.python/py-unwind-maint.exp index 10d1f722db2d..e2ec925a0808 100644 --- a/gdb/testsuite/gdb.python/py-unwind-maint.exp +++ b/gdb/testsuite/gdb.python/py-unwind-maint.exp @@ -21,17 +21,17 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] if {![runto_main]} { - return -1 + return } gdb_test "source ${pyfile}" "Python script imported" \ "import python scripts" diff --git a/gdb/testsuite/gdb.python/py-unwind-user-regs.exp b/gdb/testsuite/gdb.python/py-unwind-user-regs.exp index ac81d98c5826..c594bf74ceef 100644 --- a/gdb/testsuite/gdb.python/py-unwind-user-regs.exp +++ b/gdb/testsuite/gdb.python/py-unwind-user-regs.exp @@ -41,11 +41,11 @@ load_lib gdb-python.exp require allow_python_tests standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { - return -1 + return } if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-unwind.exp b/gdb/testsuite/gdb.python/py-unwind.exp index 784d9dfcb64d..058caaf1efc7 100644 --- a/gdb/testsuite/gdb.python/py-unwind.exp +++ b/gdb/testsuite/gdb.python/py-unwind.exp @@ -26,11 +26,11 @@ standard_testfile # assumptions this test has about its layout. set flags "additional_flags=-fno-stack-protector" if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} "debug $flags"] } { - return -1 + return } # This test runs on a specific platform. require is_x86_64_m64_target diff --git a/gdb/testsuite/gdb.python/py-value-cc.exp b/gdb/testsuite/gdb.python/py-value-cc.exp index 70135bd7ec76..1d65d617e30d 100644 --- a/gdb/testsuite/gdb.python/py-value-cc.exp +++ b/gdb/testsuite/gdb.python/py-value-cc.exp @@ -19,11 +19,11 @@ require allow_cplus_tests allow_python_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp index a384f4139dd4..3746a6cbc0bc 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -798,11 +798,11 @@ proc test_unavailable {} { } } # Build C version of executable. C++ is built later. if { [build_inferior "${binfile}" "c"] < 0 } { - return -1 + return } # Start with a fresh gdb. clean_restart ${::testfile} diff --git a/gdb/testsuite/gdb.python/py-varobj.exp b/gdb/testsuite/gdb.python/py-varobj.exp index 2b1de110e3b9..e8428e3d0745 100644 --- a/gdb/testsuite/gdb.python/py-varobj.exp +++ b/gdb/testsuite/gdb.python/py-varobj.exp @@ -20,11 +20,11 @@ set MIFLAGS "-i=mi" require allow_python_tests standard_testfile if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != ""} { - return -1 + return } mi_clean_restart $::testfile set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] diff --git a/gdb/testsuite/gdb.python/py-watchpoint.exp b/gdb/testsuite/gdb.python/py-watchpoint.exp index 50ffaab6594b..2fc366228a14 100644 --- a/gdb/testsuite/gdb.python/py-watchpoint.exp +++ b/gdb/testsuite/gdb.python/py-watchpoint.exp @@ -18,11 +18,11 @@ load_lib gdb-python.exp standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { - return -1 + return } require allow_python_tests if {![runto_main]} { diff --git a/gdb/testsuite/gdb.python/py-xmethods.exp b/gdb/testsuite/gdb.python/py-xmethods.exp index 087e93e3a6f4..52f0a7597093 100644 --- a/gdb/testsuite/gdb.python/py-xmethods.exp +++ b/gdb/testsuite/gdb.python/py-xmethods.exp @@ -21,11 +21,11 @@ load_lib gdb-python.exp require allow_cplus_tests allow_python_tests standard_testfile py-xmethods.cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 07c51e7ac3fa..f2f32019e4c2 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -20,11 +20,11 @@ load_lib gdb-python.exp standard_testfile python.c python-1.c if {[build_executable $testfile.exp $testfile \ [list $srcfile $srcfile2] debug] == -1} { - return -1 + return } clean_restart set remote_source2_py [gdb_remote_download host \ diff --git a/gdb/testsuite/gdb.python/tui-window-disabled.exp b/gdb/testsuite/gdb.python/tui-window-disabled.exp index b90f95c05ac0..35e94b278215 100644 --- a/gdb/testsuite/gdb.python/tui-window-disabled.exp +++ b/gdb/testsuite/gdb.python/tui-window-disabled.exp @@ -30,11 +30,11 @@ standard_testfile set flags {} lappend flags debug lappend_include_file flags $srcdir/lib/attributes.h if {[build_executable "failed to prepare" ${testfile} ${srcfile} $flags] == -1} { - return -1 + return } clean_restart # Copy the Python script to where the tests are being run. diff --git a/gdb/testsuite/gdb.python/tui-window.exp b/gdb/testsuite/gdb.python/tui-window.exp index 01f290be6aa0..f813908dba49 100644 --- a/gdb/testsuite/gdb.python/tui-window.exp +++ b/gdb/testsuite/gdb.python/tui-window.exp @@ -21,11 +21,11 @@ tuiterm_env # This test doesn't care about the inferior. standard_testfile py-arch.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } clean_restart Term::clean_restart 24 80 $testfile