diff mbox

[testsuite] gcc.c-torture/compile: make msg check lines unique in test summary

Message ID 4FD6ABD7.5060005@mentor.com
State New
Headers show

Commit Message

Janis Johnson June 12, 2012, 2:39 a.m. UTC
This test modifies dg-message test directives by adding comments that
will be added to lines in the test summary to eliminate non-unique lines
for checks of messages for the same line of source code in a test.

Tested on i686-pc-linux-gnu and arm-none-eabi.  OK for mainline?

Janis
2012-06-11  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.c-torture/compile/sync-1.c: Add comments to checks for multiple
	messages reported for one line of source code.

Comments

Richard Biener June 12, 2012, 8:57 a.m. UTC | #1
On Tue, Jun 12, 2012 at 4:39 AM, Janis Johnson <janis_johnson@mentor.com> wrote:
> This test modifies dg-message test directives by adding comments that
> will be added to lines in the test summary to eliminate non-unique lines
> for checks of messages for the same line of source code in a test.
>
> Tested on i686-pc-linux-gnu and arm-none-eabi.  OK for mainline?

Ok.

Thanks,
Richard.

> Janis
diff mbox

Patch

Index: gcc.c-torture/compile/sync-1.c
===================================================================
--- gcc.c-torture/compile/sync-1.c	(revision 188249)
+++ gcc.c-torture/compile/sync-1.c	(working copy)
@@ -1,5 +1,5 @@ 
-/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
-/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "fetch_and_nand" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "nand_and_fetch" { target *-*-* } 0 } */
 /* { dg-options "-ffat-lto-objects" } */
 
 /* Validate that each of the __sync builtins compiles.  This won't