[gdb/testsuite] Accept new complex print style in mixed-lang-stack.exp Since commit 981c08ce72 "Change how complex types are printed in C", we see these FAILs: ... FAIL: gdb.fortran/mixed-lang-stack.exp: lang=auto: info args in frame #6 FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c: info args in frame #6 FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c: info args in frame #7 FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c++: info args in frame #6 FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c++: info args in frame #7 ... The problem is that printing of complex types has changed from: ... d = 4 + 5 * I ... to: ... d = 4 + 5i ... but the test-case still checks for the old printing style. Fix this by updating the test-case to check for the new style. gdb/testsuite/ChangeLog: 2020-04-02 Tom de Vries * gdb.fortran/mixed-lang-stack.exp: Accept new complex printing style. --- gdb/testsuite/gdb.fortran/mixed-lang-stack.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp b/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp index c0531c3fd9..793318626d 100644 --- a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp +++ b/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp @@ -106,7 +106,7 @@ proc run_tests { lang } { set d_pattern "\\(4,5\\)" set f_pattern "$hex 'abcdef\\\\000'" } else { - set d_pattern "4 \\+ 5 \\* I" + set d_pattern "4 \\+ 5i" set f_pattern "$hex \"abcdef\"" } @@ -134,7 +134,7 @@ proc run_tests { lang } { "info frame in frame #7" if { $lang == "c" || $lang == "c++" } { - set d_pattern "4 \\+ 5 \\* I" + set d_pattern "4 \\+ 5i" set e_pattern "\"abcdef\"" set g_pattern "\{a = 1.5, b = 2.5\}" } else {