From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1751) id 445383858D32; Sat, 19 Nov 2022 15:13:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 445383858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668870780; bh=R9SNczvVcW/ARQjsVtwBHJUWZT5IxgfjEc6q02btBZk=; h=From:To:Subject:Date:From; b=Z5XWdin9pD30ZR1+F/DXyb8+uxkds2YAQV6gj6X1A5tmg3bxwYNlTDsf6WXWe1LDX m0515dZjs4p2weDxLrHVWO68DzKlleNPrnVacFbUv2QyHpgIOHrvBOveh9JMnDpZVv 616jHHAp7tzoD9MwhoUpVGjwflKL/LN9u1ZvbNrA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Philippe Waroquiers To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Add missing gdb_prompt in ctxobj.exp to avoid random failure, fix typo. X-Act-Checkin: binutils-gdb X-Git-Author: Philippe Waroquiers X-Git-Refname: refs/heads/master X-Git-Oldrev: 78805ff8aecf0a8c828fb1e2c344fa3a56655120 X-Git-Newrev: f80d30f61a5cb2293c2907909e2fbfc6a5be4144 Message-Id: <20221119151300.445383858D32@sourceware.org> Date: Sat, 19 Nov 2022 15:13:00 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df80d30f61a5c= b2293c2907909e2fbfc6a5be4144 commit f80d30f61a5cb2293c2907909e2fbfc6a5be4144 Author: Philippe Waroquiers Date: Sat Nov 19 15:55:33 2022 +0100 Add missing gdb_prompt in ctxobj.exp to avoid random failure, fix typo. =20 ctxobj.exp fails randomly when computer is loaded. With the addition of $gdb_prompt in the regexp testing for breakpoint h= it, I could not make it fail anymore. =20 Also fixed a typo in a comment. Diff: --- gdb/testsuite/gdb.base/ctxobj.exp | 4 ++-- gdb/testsuite/lib/mi-support.exp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.base/ctxobj.exp b/gdb/testsuite/gdb.base/ctx= obj.exp index 3ca8111896c..228a6890f11 100644 --- a/gdb/testsuite/gdb.base/ctxobj.exp +++ b/gdb/testsuite/gdb.base/ctxobj.exp @@ -70,7 +70,7 @@ gdb_test "break ctxobj-f.c:$bp_location" \ global expect_out set test "continue to get_version_1" gdb_test_multiple "continue" $test { - -re "Breakpoint ($bkptno_num_re), get_version_1 \\(\\).*" { + -re "Breakpoint ($bkptno_num_re), get_version_1 \\(\\).*\r\n.*$gdb_pro= mpt $" { set bpno $expect_out(1,string) pass $test } @@ -110,7 +110,7 @@ gdb_test "print this_version_num =3D=3D v" \ # Do the same, but from get_version_2. set test "continue to get_version_2" gdb_test_multiple "continue" $test { - -re "Breakpoint ($bkptno_num_re), get_version_2 \\(\\).*" { + -re "Breakpoint ($bkptno_num_re), get_version_2 \\(\\).*\r\n.*$gdb_pro= mpt $" { set bpno $expect_out(1,string) pass $test } diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-suppor= t.exp index a45c6f7be28..14ddf0ad7ff 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -1211,7 +1211,7 @@ proc mi_detect_async {} { # EXTRA can be a list of one, two or three elements. # The first element is the regular expression # for output expected right after *stopped, and before GDB prompt. -# The third element is the regulation expression for the locno +# The third element is the regular expression for the locno # right after bkptno field. The locno regex should not include # the comma separating it from the following fields. #