[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 <tdevries@suse.de> * gdb.fortran/mixed-lang-stack.exp: Accept new complex printing style.
This commit is contained in:
parent
15f89256af
commit
cc77ed241b
@ -1,3 +1,7 @@
|
||||
2020-04-02 Tom de Vries <tdevries@suse.de>
|
||||
|
||||
* gdb.fortran/mixed-lang-stack.exp: Accept new complex printing style.
|
||||
|
||||
2020-04-01 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* gdb.base/complex-parts.exp: Add type tests.
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user