From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 3BBC63858D20; Fri, 11 Nov 2022 14:52:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BBC63858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668178333; bh=IuVTe+01V3xcsd5GYyro+cLdpAdORzDMJfMWJ8G+OM0=; h=From:To:Subject:Date:From; b=VQsGvteFPeuKLdU1sjXjnMe+NgPrAi3wnQ2rDj43CJbGPatv2a9HVTcNsd4Dp/wOA h5zY4Sv/1qePsZOOzK0WLVtz97+amkT5F0q7ulbijyuneSuQ/y9ZIGQ+74LKPxqeUK 2ftKY43ZrsOYmvTTZmoxAfKubTnjmwpvXf7AV/a8= 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] Don't timeout on prompt in gdb_start_cmd X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 4f04dba96d4783bae62e7fe4a5eace9fc414723d X-Git-Newrev: ac42aa228f3f1ebda16ddb53b993d6341dbbf100 Message-Id: <20221111145213.3BBC63858D20@sourceware.org> Date: Fri, 11 Nov 2022 14:52:13 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dac42aa228f3f= 1ebda16ddb53b993d6341dbbf100 commit ac42aa228f3f1ebda16ddb53b993d6341dbbf100 Author: Tom de Vries Date: Fri Nov 11 15:52:10 2022 +0100 [gdb/testsuite] Don't timeout on prompt in gdb_start_cmd =20 We're currently running into a timeout at: ... (gdb) start ^M Error in expression, near `1'.^M (gdb) UNTESTED: gdb.ada/start.exp: start failed to land inside the righ= t \ procedure ... due to the fact that gdb_start_cmd doesn't handle a prompt as reaction = to the start command. =20 Fix this by handling the prompt. Reduces execution time of the test-ca= se from 1m1s to 1s. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/lib/gdb.exp | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index d70b6410441..1240c2ef6f3 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -548,6 +548,7 @@ proc gdb_start_cmd { {inferior_args {}} } { -notransfer -re "Starting program: \[^\r\n\]*" { return 0 } + -re "$gdb_prompt $" { } } return -1 }