public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: Make AArch64 attributes_7.c generate unique report lines.
@ 2022-05-09  9:36 Christophe Lyon
  2022-05-12 13:20 ` Richard Sandiford
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Lyon @ 2022-05-09  9:36 UTC (permalink / raw)
  To: gcc-patches

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-06  Christophe Lyon  <christophe.lyon@arm.com>

	gcc/testsuite/
	* gcc.target/aarch64/sve/acle/general/attributes_7.c: Make
	diagnostic unique.
---
 .../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);
 }
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] testsuite: Make AArch64 attributes_7.c generate unique report lines.
  2022-05-09  9:36 [PATCH] testsuite: Make AArch64 attributes_7.c generate unique report lines Christophe Lyon
@ 2022-05-12 13:20 ` Richard Sandiford
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2022-05-12 13:20 UTC (permalink / raw)
  To: Christophe Lyon via Gcc-patches

Christophe Lyon via Gcc-patches <gcc-patches@gcc.gnu.org> writes:
> 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-06  Christophe Lyon  <christophe.lyon@arm.com>
>
> 	gcc/testsuite/
> 	* gcc.target/aarch64/sve/acle/general/attributes_7.c: Make
> 	diagnostic unique.

OK, thanks.

Richard

> ---
>  .../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);
>  }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-12 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09  9:36 [PATCH] testsuite: Make AArch64 attributes_7.c generate unique report lines Christophe Lyon
2022-05-12 13:20 ` Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).