From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 26ACD3858D35; Tue, 25 Apr 2023 06:34:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26ACD3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682404465; bh=CfAASwrBzZQyCp2oAjwKfYFgIFCqZOhi/46IssJdYhc=; h=From:To:Subject:Date:From; b=MYZ+9B298+cf+2ijhDUJOgFKEnwVGhGaYX004MtFLK7qmb7wzkVRvGZQzQDcy7nC6 M6icWIy08ZQlGSjD3uOs3zbPJYef66iN+Dtcqh0+YFzeaXEJTCKOA6Ne3tQ4Y2HnrX Mx4aUlJZ3e/slAIdrnYbUZqQN94yjhC7DltCu6dA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix timeout in gdb.tui/completion.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: d8d3edbfa3870c984d3ef74fbaf312d938e3df09 X-Git-Newrev: 9d00d9eac6020be1be09adcc14deb72ddac485fe Message-Id: <20230425063425.26ACD3858D35@sourceware.org> Date: Tue, 25 Apr 2023 06:34:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9d00d9eac602= 0be1be09adcc14deb72ddac485fe commit 9d00d9eac6020be1be09adcc14deb72ddac485fe Author: Tom de Vries Date: Tue Apr 25 08:33:57 2023 +0200 [gdb/testsuite] Fix timeout in gdb.tui/completion.exp =20 With test-case gdb.tui/completion.exp, we run into: ... WARNING: timeout in accept_gdb_output PASS: gdb.tui/completion.exp: check focus completions ... =20 The timeout happens in this command: ... Term::command "layout src" ... which waits for: - "(gdb) layout src", and then - "(gdb) ". =20 Because the "layout src" command enables the TUI there's just a prompt. =20 Fix this by using Term::command_no_prompt_prefix. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.tui/completion.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.tui/completion.exp b/gdb/testsuite/gdb.tui/c= ompletion.exp index 85abd4a958b..9cf8dc2ee25 100644 --- a/gdb/testsuite/gdb.tui/completion.exp +++ b/gdb/testsuite/gdb.tui/completion.exp @@ -66,7 +66,7 @@ if {![Term::prepare_for_tui]} { return } =20 -Term::command "layout src" +Term::command_no_prompt_prefix "layout src" Term::command "complete focus " Term::dump_screen Term::check_region_contents "check focus completions" 0 17 80 5 \