From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 88F013858CDA; Mon, 18 Jul 2022 03:54:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88F013858CDA 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 gdb.arch/i386-mpx.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 53944a3bf51cdff9ad30a0c3740b8124213fdab9 X-Git-Newrev: 68a5118c481da16f81874a92f4daaab4dcdc5d89 Message-Id: <20220718035417.88F013858CDA@sourceware.org> Date: Mon, 18 Jul 2022 03:54:17 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2022 03:54:17 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D68a5118c481d= a16f81874a92f4daaab4dcdc5d89 commit 68a5118c481da16f81874a92f4daaab4dcdc5d89 Author: Tom de Vries Date: Mon Jul 18 05:54:14 2022 +0200 [gdb/testsuite] Fix gdb.arch/i386-mpx.exp =20 Since commit c4a3dbaf113 ("Expose current 'print' settings to Python") = we have: ... (gdb) print /x $bnd0 =3D {0x10, 0x20}^M $22 =3D {lbound =3D 0x10, ubound =3D 0x20} : size 0x11^M (gdb) FAIL: gdb.arch/i386-mpx.exp: verify size for bnd0 ... =20 The regexp in the test-case expects "size 17". =20 Fix this by updating the regexp. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.arch/i386-mpx.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.arch/i386-mpx.exp b/gdb/testsuite/gdb.arch/i= 386-mpx.exp index 336c0464833..0de86ba0237 100644 --- a/gdb/testsuite/gdb.arch/i386-mpx.exp +++ b/gdb/testsuite/gdb.arch/i386-mpx.exp @@ -132,5 +132,5 @@ after a failure on allocating an entry" # Going to test the python extension for lenght. if { [skip_python_tests] } { continue } # Verify if size is right -set test_string ".*\\\: size 17.*" +set test_string ".*\\\: size 0x11.*" gdb_test "print /x \$bnd0 =3D {0x10, 0x20}" "$test_string" "verify size fo= r bnd0"