From patchwork Wed Apr 29 23:04:26 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: 134230 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 6CBC64B99F5F for ; Wed, 29 Apr 2026 23:16:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CBC64B99F5F 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=j987GU11 X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by sourceware.org (Postfix) with ESMTPS id 6C6544BB58BD for ; Wed, 29 Apr 2026 23:06:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C6544BB58BD 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 6C6544BB58BD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::e2f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777504002; cv=none; b=gbMSZ0UB9MOu9Qteozf9aQI7HTrhYvy6RnDHoKE2qirzQ223ooQNZ3DMx7YdCyJNa03vpKrOmCfztnLI8683NNgOSIZvT2Rw4eLqpApIgW3hLAJHqyM1m5QEBaEwBUdd3Ps4WHWB9X4qhpfDEfVmmIzIOPD/b+EmXBj94yhlyko= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777504002; c=relaxed/simple; bh=8se+mbhFfcH5JNrqOjBA7J7ZhF8L1XG87wJhxD470x4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rHVyiQvrkzgy75suOo/laaFHPLsSX3dgfSrLgRB5uBXnPmh56XfaElOL1ZIbzAaBUjMOowJGJh4s+9rVkSJJ1M+uaeZM1Z0MmDAHcSi3VfC/a5xM7GtWp+IboYHulLkmkcV+/NB7DlGcMOR14wlgQOtukjpRDrEN7QZCVKKj4uA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C6544BB58BD Received: by mail-vs1-xe2f.google.com with SMTP id ada2fe7eead31-60fee2fa3b8so109937137.2 for ; Wed, 29 Apr 2026 16:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777504002; x=1778108802; 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=evj8QrbNTPZkhSWG79Qh1NlS9j3ILcAjRyaT77B28xY=; b=j987GU11dnQGASpvtrN/W5VZ3IKOElhNZ/O0Hy2Qrzpeeg5oiuvowU4viB6nqy+Ayj Dvg+UMhLWwgj8uGyD0vzON0K46BKpQVdIJDzABfxiruG88qvEwPr3YCaAPAN66BVpPIF C0CvvCOn7Oy1xNNpKLZEJ8+eBfMbSwUnffuxSEtkOcKCq2rkaDKA6/NqGa0Od1X5kr08 L56xKG7UbuWMiNLIO3rIOg7ItyJFtjwNVxloSPN1zP3WVTZsW6/NPVbT37S3tvmoOPaK zzVVgnGoA+c2KouLVNQdXgX7yYQX5DJmaCwGtMO1x46IN5pIrANECGm+h30OszZ7wzAW KuJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777504002; x=1778108802; 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=evj8QrbNTPZkhSWG79Qh1NlS9j3ILcAjRyaT77B28xY=; b=mVXWqfMUyj4DWIgedkzRTEnijxkibGpzapyW/6jIkxqv/8hoCD9adu/n3WIgbL/p8F KRilsCwd8fI7O42sDZ6Z193eSIooz1s9pxKWtx4mUUQdCSxvh+os7IGZVg7INWrhyyYe oWbCcAA5spBcxKV2rKa5ywHMtF1fxEBlLgVZGN192uA1PgRJlQ8YfhqXGan0fK/ziU63 +VVOy2AO1FA7q8QPmIobgb+9y6aIF9WMiUeWM+7FZ1dKH3w82n0/Uae4sylfXSWt7DyQ 5Z+TAEJzuuhfYuqpJSXFVNURCzedTv9hxlS7/+3vWMLsL9HpRYXNsDbtL0YJTY3MU5ei I+yQ== X-Gm-Message-State: AOJu0YxRgmwNkJudULNTT+PFhpY0g8OSx3veXhPWVLLzWBtiQ/cuUdxy FaPAA+MVdTEFI4sPObdCUINYNPuW+0aP7AMN9S7w6BytGZeXt5kuDPJfZHTOKmh4ELzFFuGS9IP mb1mL X-Gm-Gg: AeBDieuxfIt6CfucQ6QTCmrw/71RstPMNlQtvwSkbTnWzFOBLRxuHVU6c/lmtx3MLd/ 2lPqPn4hNHHZ2SZ9wZlADWOtcG6bt2ZKoPpTDIUE5bXKHIs3jAV7ih/joyKVEhlSku2+h7DDNFG VwWjKJzIB+1BH7VuCQMYi0IxsoDlZbA7SAtzyoTupVDlBTLS4LuGn3YpBrIrLdt+MKAzXGXMhGE uhMDRwCC0JKGGgKFj0WwbIu7msSIGOsC9kyBMRKz5pgEzrL03W9Ged9ijag1bcnI7dR3U9wtDCw W7oIvn46z1lUxUYTnoMQWCQeZdbhSYnGx6Z7dvt2y2P9p5GQVyxiumyBcYvXXQ+AWex5R7waArC /6KnUtEYaMIsZNR/xF8U5PSnR3MYwA900gEG+bxPFNSot6tedMODyoaVe6PuFAobO08/vdNr6Lx /LMy0lz6kXRT1b7QxayX+ydT3zJeYvCQCo20wLPWPU0JMdtUUML7vIftk= X-Received: by 2002:a05:6102:5f04:b0:5ff:17bd:9e83 with SMTP id ada2fe7eead31-62ad384ad88mr286733137.14.1777504001651; Wed, 29 Apr 2026 16:06:41 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-95cc4f4d418sm807373241.9.2026.04.29.16.06.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 16:06:41 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH v2 35/37] GDB: testsuite: TUI: Don't return -1 from top-level (sed) Date: Wed, 29 Apr 2026 20:04:26 -0300 Message-ID: <20260429230432.60487-36-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.1 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.tui. --- gdb/testsuite/gdb.tui/basic.exp | 2 +- gdb/testsuite/gdb.tui/break.exp | 2 +- gdb/testsuite/gdb.tui/compact-source.exp | 2 +- gdb/testsuite/gdb.tui/corefile-run.exp | 6 +++--- gdb/testsuite/gdb.tui/flush-after-run.exp | 2 +- gdb/testsuite/gdb.tui/list-before.exp | 2 +- gdb/testsuite/gdb.tui/list.exp | 2 +- gdb/testsuite/gdb.tui/main-2.exp | 2 +- gdb/testsuite/gdb.tui/main.exp | 2 +- gdb/testsuite/gdb.tui/new-layout.exp | 2 +- gdb/testsuite/gdb.tui/regs.exp | 2 +- gdb/testsuite/gdb.tui/reread.exp | 2 +- gdb/testsuite/gdb.tui/resize-3.exp | 2 +- gdb/testsuite/gdb.tui/resize-one-line.exp | 2 +- gdb/testsuite/gdb.tui/resize.exp | 2 +- gdb/testsuite/gdb.tui/scroll.exp | 2 +- gdb/testsuite/gdb.tui/tui-focus.exp | 2 +- gdb/testsuite/gdb.tui/tui-init-source.exp | 2 +- gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp | 2 +- gdb/testsuite/gdb.tui/tui-layout-asm.exp | 2 +- gdb/testsuite/gdb.tui/tui-layout.exp | 2 +- gdb/testsuite/gdb.tui/winheight.exp | 2 +- gdb/testsuite/gdb.tui/winwidth.exp | 2 +- 23 files changed, 25 insertions(+), 25 deletions(-) diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp index 7909cea674d6..26264082a163 100644 --- a/gdb/testsuite/gdb.tui/basic.exp +++ b/gdb/testsuite/gdb.tui/basic.exp @@ -22,11 +22,11 @@ tuiterm_env standard_testfile main-one-line.c set main_line [gdb_get_line_number "int main"] if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { unsupported "TUI not supported" diff --git a/gdb/testsuite/gdb.tui/break.exp b/gdb/testsuite/gdb.tui/break.exp index 4e07a0c0b691..154ca40b69fa 100644 --- a/gdb/testsuite/gdb.tui/break.exp +++ b/gdb/testsuite/gdb.tui/break.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { unsupported "TUI not supported" diff --git a/gdb/testsuite/gdb.tui/compact-source.exp b/gdb/testsuite/gdb.tui/compact-source.exp index 9f41a160b3f4..e9478bbeb863 100644 --- a/gdb/testsuite/gdb.tui/compact-source.exp +++ b/gdb/testsuite/gdb.tui/compact-source.exp @@ -36,11 +36,11 @@ set srcfile [standard_output_file $srcfile] set fd [open $srcfile w] puts $fd $src_txt close $fd if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile gdb_test_no_output "maint set tui-left-margin-verbose on" diff --git a/gdb/testsuite/gdb.tui/corefile-run.exp b/gdb/testsuite/gdb.tui/corefile-run.exp index 7e1184ecf040..1361e4a7f6de 100644 --- a/gdb/testsuite/gdb.tui/corefile-run.exp +++ b/gdb/testsuite/gdb.tui/corefile-run.exp @@ -25,23 +25,23 @@ tuiterm_env standard_testfile tui-layout.c set core [standard_output_file "${testfile}.core"] if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } { - return -1 + return } # Only run on native boards. require {target_can_use_run_cmd core} if { ![runto_main] } { - return -1 + return } if { ![gdb_gcore_cmd "$core" "save a corefile"] } { untested "could not generate a corefile" - return -1 + return } set src_line "return 0;" set src_line_nr [gdb_get_line_number $src_line] diff --git a/gdb/testsuite/gdb.tui/flush-after-run.exp b/gdb/testsuite/gdb.tui/flush-after-run.exp index ecc2caafc33d..db20b8cee80b 100644 --- a/gdb/testsuite/gdb.tui/flush-after-run.exp +++ b/gdb/testsuite/gdb.tui/flush-after-run.exp @@ -22,11 +22,11 @@ require target_can_use_run_cmd tuiterm_env standard_testfile if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { diff --git a/gdb/testsuite/gdb.tui/list-before.exp b/gdb/testsuite/gdb.tui/list-before.exp index 55485aa5629c..5d3cef954d49 100644 --- a/gdb/testsuite/gdb.tui/list-before.exp +++ b/gdb/testsuite/gdb.tui/list-before.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile gdb_test "list -q main" diff --git a/gdb/testsuite/gdb.tui/list.exp b/gdb/testsuite/gdb.tui/list.exp index de58afa53e1a..5cefebc7e016 100644 --- a/gdb/testsuite/gdb.tui/list.exp +++ b/gdb/testsuite/gdb.tui/list.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { unsupported "TUI not supported" diff --git a/gdb/testsuite/gdb.tui/main-2.exp b/gdb/testsuite/gdb.tui/main-2.exp index 1b8068e3a361..9b3b38645b0f 100644 --- a/gdb/testsuite/gdb.tui/main-2.exp +++ b/gdb/testsuite/gdb.tui/main-2.exp @@ -21,11 +21,11 @@ require allow_tui_tests tuiterm_env standard_testfile tui-layout.c if { [build_executable "failed to prepare" $testfile $srcfile ] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![runto_main]} { diff --git a/gdb/testsuite/gdb.tui/main.exp b/gdb/testsuite/gdb.tui/main.exp index 5bc6b91cdee4..d8a9c8eebe85 100644 --- a/gdb/testsuite/gdb.tui/main.exp +++ b/gdb/testsuite/gdb.tui/main.exp @@ -20,11 +20,11 @@ require allow_tui_tests tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } # Note: don't pass the executable here Term::clean_restart 24 80 diff --git a/gdb/testsuite/gdb.tui/new-layout.exp b/gdb/testsuite/gdb.tui/new-layout.exp index f293773f9d15..e544ef6fd90a 100644 --- a/gdb/testsuite/gdb.tui/new-layout.exp +++ b/gdb/testsuite/gdb.tui/new-layout.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } # Make sure TUI is supported before continuing. with_test_prefix "initial check" { Term::clean_restart 24 80 $testfile diff --git a/gdb/testsuite/gdb.tui/regs.exp b/gdb/testsuite/gdb.tui/regs.exp index 3c524ad49a70..8169538da85c 100644 --- a/gdb/testsuite/gdb.tui/regs.exp +++ b/gdb/testsuite/gdb.tui/regs.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![runto_main]} { diff --git a/gdb/testsuite/gdb.tui/reread.exp b/gdb/testsuite/gdb.tui/reread.exp index de35fef744cd..3ed0839e1c83 100644 --- a/gdb/testsuite/gdb.tui/reread.exp +++ b/gdb/testsuite/gdb.tui/reread.exp @@ -21,11 +21,11 @@ tuiterm_env # Use main-one-line.c to get the line info at a predictable location without # resorting to a dwarf assembly test-case. standard_testfile main-one-line.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { diff --git a/gdb/testsuite/gdb.tui/resize-3.exp b/gdb/testsuite/gdb.tui/resize-3.exp index d9e0948a9a80..fdaffe006419 100644 --- a/gdb/testsuite/gdb.tui/resize-3.exp +++ b/gdb/testsuite/gdb.tui/resize-3.exp @@ -21,11 +21,11 @@ standard_testfile -main.c -foo.c if { [build_executable_from_specs "failed to prepare" \ $testfile {debug} \ $srcfile {debug} \ $srcfile2 {nodebug}] == -1 } { - return -1 + return } tuiterm_env Term::clean_restart 24 80 $testfile diff --git a/gdb/testsuite/gdb.tui/resize-one-line.exp b/gdb/testsuite/gdb.tui/resize-one-line.exp index f5e2858b05d2..0a47dcf0e7f8 100644 --- a/gdb/testsuite/gdb.tui/resize-one-line.exp +++ b/gdb/testsuite/gdb.tui/resize-one-line.exp @@ -20,11 +20,11 @@ tuiterm_env standard_testfile main-one-line.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { diff --git a/gdb/testsuite/gdb.tui/resize.exp b/gdb/testsuite/gdb.tui/resize.exp index 93918f3b3560..25f52c6a5b8e 100644 --- a/gdb/testsuite/gdb.tui/resize.exp +++ b/gdb/testsuite/gdb.tui/resize.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![runto_main]} { diff --git a/gdb/testsuite/gdb.tui/scroll.exp b/gdb/testsuite/gdb.tui/scroll.exp index e9fa829f40ec..0162cfd8db7b 100644 --- a/gdb/testsuite/gdb.tui/scroll.exp +++ b/gdb/testsuite/gdb.tui/scroll.exp @@ -22,11 +22,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { unsupported "TUI not supported" diff --git a/gdb/testsuite/gdb.tui/tui-focus.exp b/gdb/testsuite/gdb.tui/tui-focus.exp index 5df76b59b864..310b3a473206 100644 --- a/gdb/testsuite/gdb.tui/tui-focus.exp +++ b/gdb/testsuite/gdb.tui/tui-focus.exp @@ -21,11 +21,11 @@ tuiterm_env load_lib gdb-python.exp standard_testfile if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} { - return -1 + return } # Run a series of tests based on various test specifications. # # Each test specification is a tuple where the first item is the name of a diff --git a/gdb/testsuite/gdb.tui/tui-init-source.exp b/gdb/testsuite/gdb.tui/tui-init-source.exp index edd364e05b12..f49b0ecdcbdb 100644 --- a/gdb/testsuite/gdb.tui/tui-init-source.exp +++ b/gdb/testsuite/gdb.tui/tui-init-source.exp @@ -21,11 +21,11 @@ require allow_tui_tests tuiterm_env standard_testfile if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { diff --git a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp index e54ae69997ed..b3dd72ce1ceb 100644 --- a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp +++ b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp @@ -25,11 +25,11 @@ lappend opts debug lappend opts additional_flags=-static lappend opts additional_flags=-nostdlib lappend opts ldflags=-nostartfiles if { [build_executable "failed to prepare" $testfile $srcfile $opts] == -1 } { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::prepare_for_tui]} { unsupported "TUI not supported" diff --git a/gdb/testsuite/gdb.tui/tui-layout-asm.exp b/gdb/testsuite/gdb.tui/tui-layout-asm.exp index bbaa4f9b846f..01193b6fb44b 100644 --- a/gdb/testsuite/gdb.tui/tui-layout-asm.exp +++ b/gdb/testsuite/gdb.tui/tui-layout-asm.exp @@ -19,11 +19,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } # The wider the window is, the less line truncation happens, so matching # pre-scroll to post-scroll lines is more accurate. But 100% accurate line # matching isn't a goal of the test-case. diff --git a/gdb/testsuite/gdb.tui/tui-layout.exp b/gdb/testsuite/gdb.tui/tui-layout.exp index 05ca3b450290..1cb70504e3f8 100644 --- a/gdb/testsuite/gdb.tui/tui-layout.exp +++ b/gdb/testsuite/gdb.tui/tui-layout.exp @@ -21,11 +21,11 @@ require allow_tui_tests tuiterm_env standard_testfile if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} { - return -1 + return } # Run one test of the 'layout' command, selecting LAYOUT_NAME. # # TERMINAL should be either 'dumb' or 'ansi'. When TERMINAL is 'dumb' diff --git a/gdb/testsuite/gdb.tui/winheight.exp b/gdb/testsuite/gdb.tui/winheight.exp index 758f23d8f723..9daf08916af8 100644 --- a/gdb/testsuite/gdb.tui/winheight.exp +++ b/gdb/testsuite/gdb.tui/winheight.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { unsupported "TUI not supported" diff --git a/gdb/testsuite/gdb.tui/winwidth.exp b/gdb/testsuite/gdb.tui/winwidth.exp index a18ff4edba1f..cc6c7dcd1536 100644 --- a/gdb/testsuite/gdb.tui/winwidth.exp +++ b/gdb/testsuite/gdb.tui/winwidth.exp @@ -18,11 +18,11 @@ tuiterm_env standard_testfile tui-layout.c if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { - return -1 + return } Term::clean_restart 24 80 $testfile if {![Term::enter_tui]} { unsupported "TUI not supported"