[gdb/testsuite] Accept new complex print style in mixed-lang-stack.exp
authorTom de Vries <tdevries@suse.de>
Thu, 2 Apr 2020 06:38:47 +0000 (08:38 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 2 Apr 2020 06:38:47 +0000 (08:38 +0200)
commitcc77ed241bab61c0e86f4620e68be4481063a450
treeb0b1eb185eb697b90f93486e8f673e82169f9c12
parent15f89256afe66513cb8bb7be10704f24ba0b2fcb
[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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/mixed-lang-stack.exp