This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH V2 1/2] testsuite: Fix timeout issues during print of vla-arrays.
- From: Bernhard Heckel <bernhard dot heckel at intel dot com>
- To: brobecker at adacore dot com
- Cc: gdb-patches at sourceware dot org, "bernhard.heckel" <bernhard dot heckel at intel dot com>
- Date: Thu, 25 Feb 2016 14:08:04 +0100
- Subject: [PATCH V2 1/2] testsuite: Fix timeout issues during print of vla-arrays.
- Authentication-results: sourceware.org; auth=none
From: "bernhard.heckel" <bernhard.heckel@intel.com>
Printing and resolving of dynamic array's causes sporadic timeout issues on loaded systems.
2016-02-12 Bernhard Heckel <bernhard.heckel@intel.com>
gdb/Changelog:
* vla-history.exp: Lookup array elements and printing exceeds timeout.
Conflicts:
gdb/testsuite/gdb.fortran/vla-history.exp
gdb/testsuite/gdb.fortran/vla-value.exp
---
gdb/testsuite/gdb.fortran/vla-history.exp | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/gdb/testsuite/gdb.fortran/vla-history.exp b/gdb/testsuite/gdb.fortran/vla-history.exp
index 1478e6b..bb2f84b 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"
--
2.7.1.339.g0233b80