From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1652) id E6189384B000; Fri, 13 May 2022 08:03:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6189384B000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Christophe Lyon To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-382] testsuite: Make AArch64 attributes_7.c generate unique report lines. X-Act-Checkin: gcc X-Git-Author: Christophe Lyon X-Git-Refname: refs/heads/master X-Git-Oldrev: ba2068893c37deaa418d9b2126414f6824e66655 X-Git-Newrev: bac63f1ea9121a59e980981cfb8b2ea1869f12f0 Message-Id: <20220513080322.E6189384B000@sourceware.org> Date: Fri, 13 May 2022 08:03:22 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 08:03:23 -0000 https://gcc.gnu.org/g:bac63f1ea9121a59e980981cfb8b2ea1869f12f0 commit r13-382-gbac63f1ea9121a59e980981cfb8b2ea1869f12f0 Author: Christophe Lyon Date: Fri May 6 18:30:51 2022 +0100 testsuite: Make AArch64 attributes_7.c generate unique report lines. This test is executed in both C and C++ modes, lines 98 and 100 pass in C++ and are xfail in C. This results in similar lines in gcc.sum and g++.sum, differing by the PASS or XFAIL prefix, which confuses compare_test: it reports these tests twice, as "now fail, but worked before" and "now work, but didn't before". To make the diagnostic different betweek C and C++, I use $tool in the dg-error comment field. 2022-05-13 Christophe Lyon gcc/testsuite/ * gcc.target/aarch64/sve/acle/general/attributes_7.c: Make diagnostic unique. Diff: --- gcc/testsuite/gcc.target/aarch64/sve/acle/general/attributes_7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/general/attributes_7.c b/gcc/testsuite/gcc.target/aarch64/sve/acle/general/attributes_7.c index 621666ce6c9..95be60591fb 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/acle/general/attributes_7.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/general/attributes_7.c @@ -95,9 +95,9 @@ f (int c) fb = sb; (void) (c ? sb : sb); - (void) (c ? sb : fb); // { dg-error {type mismatch|different types} "" { xfail c } } + (void) (c ? sb : fb); // { dg-error {type mismatch|different types} "$tool" { xfail c } } - (void) (c ? fb : sb); // { dg-error {type mismatch|different types} "" { xfail c } } + (void) (c ? fb : sb); // { dg-error {type mismatch|different types} "$tool" { xfail c } } (void) (c ? fb : fb); }