From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id D03D8386F416 for ; Wed, 26 Aug 2020 14:49:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D03D8386F416 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x331.google.com with SMTP id o21so2064926wmc.0 for ; Wed, 26 Aug 2020 07:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xZHqWEP2o4iQ9NCglXLKAxDFNgipljJXqzc+P3XLMAw=; b=Af+Z0kKJE69FYkdGJo5TZMsIZT3gmse1PV5Kh45a3M9cTwrpJH/FEddgydUJv0k4TY uH3ntxEC+FFl5SmjWvxOcnaUs41F2cs1W8VYijidFED6IVV+v3e9sbzjc3BjiwOHeJ4c dxAelCZH6Kj71nJzIoW+/VMmF0ji/JAjkUr/EL+oDwlVyC+w7qc5fmEHlE9uxe8Pdco6 KODCbls1B/Xl5ph11zZYLcOaDXPutFIJtkdqBLATm7VsfZO6Nbz1snw5+8Vsl9r4vbBD TLbFwqoV7NvPFOr0eshAb/qZAdxdWSJfRMO0tTBthuWKKIs+rg2LueRTDDG+/iWAwWKj ofcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xZHqWEP2o4iQ9NCglXLKAxDFNgipljJXqzc+P3XLMAw=; b=XWnHrjvO6R3L3XzTEnyY3ejjfo+KUrU0uXC8mMUkG6PkqlaX8cQtgs4LNSl2iFKwon 9dVcvLDs3rL6PI1COAMa9xkCUNbXUfzaAlxGcvaYayHp+t4dI+6pSwsrwZ+YagckPqog l7tTATg5/K35+F2LbkrVeb9n8b3kgxlgsOLvim7b2D0hZriF3tY+TmRnAS2y8qSzRGBm U/KSQX0NSTWqY/GNBejPq5/EZKR7ONZ+nJrmAy57Z7dJTBHxIS+t6l8wfcpYzhB47V5k 7Ecm22ScYnVimGmIap63W4o518awdXOTaGxBTyNkfnTYtFPeegMB6ZIyo1V2zBA8CPMK S99g== X-Gm-Message-State: AOAM530jKzPyGvFwpkQjrF/cSF/RoDxNEESw+9IZWX7uslGQKBdfmVjc WUU6bd5bPZKj2QHBLvDc9xP4GKzJEzPv1w== X-Google-Smtp-Source: ABdhPJyNCsEHzqwY6fE0BgVvT59Ep1W8uVjOinplbHjkIbD+xwOuU+HYq+oJ+KJSww2hzS9UwAuVbg== X-Received: by 2002:a1c:6a03:: with SMTP id f3mr7818801wmc.181.1598453384706; Wed, 26 Aug 2020 07:49:44 -0700 (PDT) Received: from localhost (host109-148-134-218.range109-148.btcentralplus.com. [109.148.134.218]) by smtp.gmail.com with ESMTPSA id u6sm5701156wrn.95.2020.08.26.07.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:49:44 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCHv2 09/10] gdb/testsuite: Add missing expected results Date: Wed, 26 Aug 2020 15:49:16 +0100 Message-Id: <74a1efdd3ea0cc469859ded4151a9c2479a05172.1598452395.git.andrew.burgess@embecosm.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 14:49:47 -0000 The tests in this script are driven from two lists of expected results, one of the lists is missing some data so DejaGNU ends up matching against the empty string (which passes). This commit adds the missing expected results into the script. I could rewrite this test to make things more robust, however, a later commit is going to completely rewrite this test script, I'm simply adding this here so that _before_ the rewrite the test is complete, then if anyone ever digs into the history of this test script things will make sense (I hope). gdb/testsuite/ChangeLog: * gdb.fortran/array-slices.exp: Add missing message data. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.fortran/array-slices.exp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices.exp index 8587c51e990..31f95a3668d 100644 --- a/gdb/testsuite/gdb.fortran/array-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices.exp @@ -53,7 +53,10 @@ set message_strings \ " = 'array \\(1:5,1:5\\)'" \ " = 'array \\(1:10:2,1:10:2\\)'" \ " = 'array \\(1:10:3,1:10:2\\)'" \ - " = 'array \\(1:10:5,1:10:3\\)'" ] + " = 'array \\(1:10:5,1:10:3\\)'" \ + " = 'other'" \ + " = 'other \\(-5:0, -2:0\\)'" \ + " = 'other \\(-5:4:2, -2:7:3\\)'" ] set i 0 foreach result $array_contents msg $message_strings { -- 2.25.4