Skip to content
Snippets Groups Projects
Commit 07e448ad authored by bernhard.heckel's avatar bernhard.heckel Committed by Bernhard Heckel
Browse files

testsuite: Fix timeout issues during print of vla-arrays.

Printing and resolving of dynamic array's causes sporadic timeout issues on loaded systems.

2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>

gdb/testsuite/Changelog:

     * gdb.fortran/vla-history.exp: Lookup array elements and printing exceeds timeout.
parent 9ac2d526
No related branches found
No related tags found
No related merge requests found
2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
* gdb.fortran/vla-history.exp: Lookup array elements and printing exceeds timeout.
2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
* gdb.cp/vla-cxx.cc: Insert dummy assignment as anchor for an breakpoint.
......
......@@ -35,14 +35,18 @@ gdb_continue_to_breakpoint "vla2-allocated"
gdb_breakpoint [gdb_get_line_number "vla1-filled"]
gdb_continue_to_breakpoint "vla1-filled"
gdb_test "print vla1" \
" = \\( *\\( *\\( *1311, *1311, *1311,\[()1311, .\]*\\)" \
"print vla1 filled"
with_timeout_factor 2 {
gdb_test "print vla1" \
" = \\( *\\( *\\( *1311, *1311, *1311,\[()1311, .\]*\\)" \
"print vla1 filled"
}
# Try to access history values for full vla prints.
gdb_test "print \$1" " = <not allocated>" "print \$1"
gdb_test "print \$2" \
" = \\( *\\( *\\( *1311, *1311, *1311,\[()1311, .\]*\\)" "print \$2"
with_timeout_factor 2 {
gdb_test "print \$2" \
" = \\( *\\( *\\( *1311, *1311, *1311,\[()1311, .\]*\\)" "print \$4"
}
gdb_breakpoint [gdb_get_line_number "vla2-filled"]
gdb_continue_to_breakpoint "vla2-filled"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment