From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YP+CCb6JmmEyUQAAWB0awg (envelope-from ) for ; Sun, 21 Nov 2021 13:02:38 -0500 Received: by simark.ca (Postfix, from userid 112) id 24E921F0CE; Sun, 21 Nov 2021 13:02:38 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 933541EDF0 for ; Sun, 21 Nov 2021 13:02:37 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1556D3858001 for ; Sun, 21 Nov 2021 18:02:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1556D3858001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1637517757; bh=HAR7KGo/fauHOT6mjQ9iBu6DnmLLHMqr0H+oGd7S4LQ=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=UfDVuOZm9GYpnEAI0fMUoNWDL1UixxHRAeKHgq9Gz1IEiyHQLIusJ83T0WSzmmbyP bryALjQoNeTLkmJytBwFKcBsDKY7cGVIsFasfOLYBx5/b+Z5um/rV+hp5G9Wf4BGGS bDKxDKlSD1WpQfTwRSwdX3ndE+50UQRjDfc6vnT4= Received: from lndn.lancelotsix.com (vps-42846194.vps.ovh.net [IPv6:2001:41d0:801:2000::2400]) by sourceware.org (Postfix) with ESMTPS id A0A043858425 for ; Sun, 21 Nov 2021 17:57:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A0A043858425 Received: from Plymouth.lan (unknown [IPv6:2a02:390:9086:0:e409:90b0:99cc:9f98]) by lndn.lancelotsix.com (Postfix) with ESMTPSA id CC3758198D; Sun, 21 Nov 2021 17:57:37 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH 11/29] gdb/testsuite: Remove duplicates from gdb.base/dfp-test.exp Date: Sun, 21 Nov 2021 17:56:18 +0000 Message-Id: <20211121175636.779325-12-lsix@lancelotsix.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211121175636.779325-1-lsix@lancelotsix.com> References: <20211121175636.779325-1-lsix@lancelotsix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (lndn.lancelotsix.com [0.0.0.0]); Sun, 21 Nov 2021 17:57:38 +0000 (UTC) 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: , From: Lancelot SIX via Gdb-patches Reply-To: Lancelot SIX Cc: Lancelot SIX Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" When running the testsuite, I have: Running .../gdb/testsuite/gdb.base/dfp-test.exp ... DUPLICATE: gdb.base/dfp-test.exp: 1.23E is an invalid number DUPLICATE: gdb.base/dfp-test.exp: 1.23E45A is an invalid number DUPLICATE: gdb.base/dfp-test.exp: 1.23E is an invalid number DUPLICATE: gdb.base/dfp-test.exp: 1.23E45A is an invalid number Fix by adjusting the test names. Tested on x86_64-linux. --- gdb/testsuite/gdb.base/dfp-test.exp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gdb/testsuite/gdb.base/dfp-test.exp b/gdb/testsuite/gdb.base/dfp-test.exp index 379794a1b31..c2ca7e7f032 100644 --- a/gdb/testsuite/gdb.base/dfp-test.exp +++ b/gdb/testsuite/gdb.base/dfp-test.exp @@ -61,10 +61,10 @@ proc d32_set_tests {} { gdb_test "p d32=1.234567E+97df" " = Infinity" "1.234567E+97 is Infinity" # Test that gdb could detect the errors in the string representation of _Decimal32 - gdb_test "p d32=12345.df" " = 12345" "12345. is a valid number" - gdb_test "p d32=12345df" ".*Invalid number.*" "12345 is an invalid number" - gdb_test "p d32=1.23Edf" ".*Conversion syntax.*" "1.23E is an invalid number" - gdb_test "p d32=1.23E45Adf" ".*Conversion syntax.*" "1.23E45A is an invalid number" + gdb_test "p d32=12345.df" " = 12345" "12345. is a valid Decimal32 number" + gdb_test "p d32=12345df" ".*Invalid number.*" "12345 is an invalid Decimal32 number" + gdb_test "p d32=1.23Edf" ".*Conversion syntax.*" "1.23E is an invalid Decimal32 number" + gdb_test "p d32=1.23E45Adf" ".*Conversion syntax.*" "1.23E45A is an invalid Decimal32 number" } proc d64_set_tests {} { @@ -92,9 +92,9 @@ proc d64_set_tests {} { gdb_test "p d64=1.234567890123456E385dd" " = Infinity" "d64=1.234567890123456E385 is Infinity" # Test that gdb could detect the errors in the string representation of _Decimal64 - gdb_test "p d64=12345dd" ".*Invalid number.*" "12345dd is an invalid number" - gdb_test "p d64=1.23Edd" ".*Conversion syntax.*" "1.23E is an invalid number" - gdb_test "p d64=1.23E45Add" ".*Conversion syntax.*" "1.23E45A is an invalid number" + gdb_test "p d64=12345dd" ".*Invalid number.*" "12345 is an invalid Decimal64 number" + gdb_test "p d64=1.23Edd" ".*Conversion syntax.*" "1.23E is an invalid Decimal64 number" + gdb_test "p d64=1.23E45Add" ".*Conversion syntax.*" "1.23E45A is an invalid Decimal64 number" } proc d128_set_tests {} { @@ -121,9 +121,9 @@ proc d128_set_tests {} { gdb_test "p d128=1.234567890123456E6145dl" "Infinity" "d128=1.234567890123456E6145 is Infinity" # Test that gdb could detect the errors in the string representation of _Decimal128 - gdb_test "p d128=12345dl" ".*Invalid number.*" "12345dl is an invalid number" - gdb_test "p d128=1.23Edl" ".*Conversion syntax.*" "1.23E is an invalid number" - gdb_test "p d128=1.23E45Adl" ".*Conversion syntax.*" "1.23E45A is an invalid number" + gdb_test "p d128=12345dl" ".*Invalid number.*" "12345dl is an invalid Decimal128 number" + gdb_test "p d128=1.23Edl" ".*Conversion syntax.*" "1.23E is an invalid Decimal128 number" + gdb_test "p d128=1.23E45Adl" ".*Conversion syntax.*" "1.23E45A is an invalid Decimal128 number" } # Different tests on 32-bits decimal floating point, including the printing -- 2.33.1