From 68a5118c481da16f81874a92f4daaab4dcdc5d89 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 18 Jul 2022 05:54:14 +0200 Subject: [gdb/testsuite] Fix gdb.arch/i386-mpx.exp Since commit c4a3dbaf113 ("Expose current 'print' settings to Python") we have: ... (gdb) print /x $bnd0 = {0x10, 0x20}^M $22 = {lbound = 0x10, ubound = 0x20} : size 0x11^M (gdb) FAIL: gdb.arch/i386-mpx.exp: verify size for bnd0 ... The regexp in the test-case expects "size 17". Fix this by updating the regexp. Tested on x86_64-linux. --- 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/i386-mpx.exp index 336c046..0de86ba 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 = {0x10, 0x20}" "$test_string" "verify size for bnd0" -- cgit v1.1