From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104211 invoked by alias); 22 Feb 2016 14:50:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 104122 invoked by uid 89); 22 Feb 2016 14:50:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=UD:vla-value.exp, vlavalueexp, vla-value.exp, gdb.fortran X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Feb 2016 14:50:15 +0000 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 22 Feb 2016 06:50:13 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 22 Feb 2016 06:50:12 -0800 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u1MEoAMq026541; Mon, 22 Feb 2016 14:50:10 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id u1MEoA1q004573; Mon, 22 Feb 2016 15:50:10 +0100 Received: (from heckel@localhost) by ulvlx001.iul.intel.com with œ id u1MEo9W2004569; Mon, 22 Feb 2016 15:50:09 +0100 From: Bernhard Heckel To: brobecker@adacore.com Cc: gdb-patches@sourceware.org, "bernhard.heckel" Subject: [PATCH] testsuite: Fix timeout issues during print of vla-arrays. Date: Mon, 22 Feb 2016 14:50:00 -0000 Message-Id: <1456152558-3962-4-git-send-email-bernhard.heckel@intel.com> In-Reply-To: <1456152558-3962-1-git-send-email-bernhard.heckel@intel.com> References: <1456152558-3962-1-git-send-email-bernhard.heckel@intel.com> X-SW-Source: 2016-02/txt/msg00653.txt.bz2 From: "bernhard.heckel" Printing and resolving of dynamic array's causes sporadic timeout issues on loaded systems. 2016-02-12 Bernhard Heckel 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 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gdb/testsuite/gdb.fortran/vla-history.exp b/gdb/testsuite/gdb.fortran/vla-history.exp index 1478e6b..2012961 100644 --- a/gdb/testsuite/gdb.fortran/vla-history.exp +++ b/gdb/testsuite/gdb.fortran/vla-history.exp @@ -30,19 +30,20 @@ gdb_breakpoint [gdb_get_line_number "vla1-init"] gdb_continue_to_breakpoint "vla1-init" gdb_test "print vla1" " = " "print non-allocated vla1" -gdb_breakpoint [gdb_get_line_number "vla2-allocated"] -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" " = " "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