diff options
author | bernhard.heckel <bernhard.heckel@intel.com> | 2016-03-02 16:34:57 +0100 |
---|---|---|
committer | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-03-02 16:44:06 +0100 |
commit | 07e448ade17bc8fb52469a5b2184017f94669bd6 (patch) | |
tree | b271cfd99eea4e59e2e130a3e99087aedbaa8173 /gdb | |
parent | 9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b (diff) | |
download | binutils-gdb-07e448ade17bc8fb52469a5b2184017f94669bd6.tar.gz |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.fortran/vla-history.exp | 14 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cf69cce6044..889706f4510 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 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. 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com> diff --git a/gdb/testsuite/gdb.fortran/vla-history.exp b/gdb/testsuite/gdb.fortran/vla-history.exp index 1478e6befc6..bb2f84b78f5 100644 --- a/gdb/testsuite/gdb.fortran/vla-history.exp +++ b/gdb/testsuite/gdb.fortran/vla-history.exp @@ -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" |