binutils-gdb/gdb/testsuite/gdb.fortran
Tom de Vries c8ed8c8ac3 [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp
When running test-case gdb.mi/mi-var-child-f.exp on openSUSE Tumbleweed
(with glibc 2.34) I run into:
...
(gdb) ^M
PASS: gdb.mi/mi-var-child-f.exp: mi runto prog_array
Expecting: ^(-var-create array \* array[^M
]+)?(\^done,name="array",numchild="[0-9]+",value=".*",type=.*,has_more="0"[^M
]+[(]gdb[)] ^M
[ ]*)
-var-create array * array^M
&"Attempt to use a type name as an expression.\n"^M
^error,msg="-var-create: unable to create variable object"^M
(gdb) ^M
FAIL: gdb.mi/mi-var-child-f.exp: create local variable array (unexpected output)
...

The problem is that the name array is used both:
- as the name for a local variable
- as the name of a type in glibc, in file malloc/dynarray-skeleton.c, as included
  by nss/nss_files/files-hosts.c.

Fix this by ignoring the shared lib symbols.

Likewise in a couple of other fortran tests.

Tested on x86_64-linux.
2021-10-11 16:59:56 +02:00
..
allocated.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp 2021-10-11 16:59:56 +02:00
allocated.f90
array-bounds-high.exp
array-bounds-high.f90
array-bounds.exp
array-bounds.f90
array-element.exp
array-element.f
array-slices-bad.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp 2021-10-11 16:59:56 +02:00
array-slices-bad.f90
array-slices-sub-slices.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp 2021-10-11 16:59:56 +02:00
array-slices-sub-slices.f90
array-slices.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp 2021-10-11 16:59:56 +02:00
array-slices.f90
associated.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
associated.f90
block-data.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
block-data.f
call-no-debug-func.f90
call-no-debug-prog.f90
call-no-debug.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
charset.exp
charset.f90
class-allocatable-array.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
class-allocatable-array.f90
common-block.exp
common-block.f90
completion.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
completion.f90
complex.exp
complex.f90
debug-expr.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
debug-expr.f90
derived-type-function.exp
derived-type-function.f90
derived-type-striding.exp
derived-type-striding.f90
derived-type.exp
derived-type.f90
dot-ops.exp
dynamic-ptype-whatis.exp
dynamic-ptype-whatis.f90
exprs.exp
function-calls.exp
function-calls.f90
info-modules.exp [gdb/testsuite] Fix fortran module tests with stressed cpu 2021-10-09 11:35:43 +02:00
info-types-2.f90
info-types.exp
info-types.f90
intrinsics.exp
intrinsics.f90
intvar-array.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
intvar-array.f90
intvar-dynamic-types.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
intvar-dynamic-types.f90
lbound-ubound.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp 2021-10-11 16:59:56 +02:00
lbound-ubound.F90
library-module-lib.f90
library-module-main.f90
library-module.exp
logical.exp
logical.f90
max-depth.exp
max-depth.f90
mixed-lang-stack.c
mixed-lang-stack.cpp
mixed-lang-stack.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
mixed-lang-stack.f90
module.exp [gdb/testsuite] Fix fortran module tests with stressed cpu 2021-10-09 11:35:43 +02:00
module.f90
multi-dim.exp
multi-dim.f90
nested-funcs-2.exp
nested-funcs-2.f90
nested-funcs.exp
nested-funcs.f90
pointer-to-pointer.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
pointer-to-pointer.f90
pointers.f90
print_type.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
print-formatted.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
print-formatted.f90
printing-types.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
printing-types.f90
ptr-indentation.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
ptr-indentation.f90
ptype-on-functions.exp
ptype-on-functions.f90
rank.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
rank.f90
shape.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
shape.f90
short-circuit-argument-list.exp
short-circuit-argument-list.f90
size.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
size.f90
subarray.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp 2021-10-11 16:59:56 +02:00
subarray.f
type-kinds.exp
type.f90
types.exp
vla-alloc-assoc.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-datatypes.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-datatypes.f90
vla-history.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-ptr-info.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-ptype-sub.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-ptype.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-sizeof.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-sub.f90
vla-type.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-type.f90
vla-value-sub-arbitrary.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-value-sub-finish.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-value-sub.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla-value.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
vla.f90
whatis_type.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00