Patchwork [google] XFAIL some guality tests (issue4289045)

login
register
mail settings
Submitter Diego Novillo
Date March 14, 2011, 11:16 p.m.
Message ID <20110314231602.434BFAE1DF@tobiano.tor.corp.google.com>
Download mbox | patch
Permalink /patch/86837/
State New
Headers show

Comments

Diego Novillo - March 14, 2011, 11:16 p.m.
These tests fail on trunk as well as google/integration.  XFAILing to
pacify testers.

Tested on x86_64/{-m32,-m64}.  Committed to google/integration.


2011-03-14  Diego Novillo  <dnovillo@google.com>

	* gcc.dg/guality/vla-1.c: XFAIL.
	* gcc.dg/guality/vla-2.c: XFAIL.
	* gcc.dg/guality/sra-1.c: XFAIL.


--
This patch is available for review at http://codereview.appspot.com/4289045

Patch

Index: testsuite/gcc.dg/guality/vla-1.c
===================================================================
--- testsuite/gcc.dg/guality/vla-1.c	(revision 170776)
+++ testsuite/gcc.dg/guality/vla-1.c	(working copy)
@@ -14,14 +14,14 @@  f1 (int i)
 {
   char a[i + 1];
   a[0] = 5;		/* { dg-final { gdb-test 17 "i" "5" } } */
-  return a[0];		/* { dg-final { gdb-test 17 "sizeof (a)" "6" } } */
+  return a[0];		/* { dg-final { gdb-test 17 "sizeof (a)" "6" { xfail *-*-* } } } */
 }
 
 int __attribute__((noinline))
 f2 (int i)
 {
   short a[i * 2 + 7];	/* { dg-final { gdb-test 24 "i" "5" } } */
-  bar (a);		/* { dg-final { gdb-test 24 "sizeof (a)" "17 * sizeof (short)" } } */
+  bar (a);		/* { dg-final { gdb-test 24 "sizeof (a)" "17 * sizeof (short)" { xfail *-*-* } } } */
   return a[i + 4];
 }
 
Index: testsuite/gcc.dg/guality/vla-2.c
===================================================================
--- testsuite/gcc.dg/guality/vla-2.c	(revision 170776)
+++ testsuite/gcc.dg/guality/vla-2.c	(working copy)
@@ -13,7 +13,7 @@  fn2 (int i)
 {
   int a[i];
   fn1 (a, i);
-  fn1 (a, i);		/* { dg-final { gdb-test 16 "sizeof (a)" "5 * sizeof (int)" } } */
+  fn1 (a, i);		/* { dg-final { gdb-test 16 "sizeof (a)" "5 * sizeof (int)" { xfail *-*-* } } } */
   return i;
 }
 
@@ -22,7 +22,7 @@  fn3 (int i)
 {
   int a[i];
   fn1 (a, i);
-  fn1 (a, i);		/* { dg-final { gdb-test 25 "sizeof (a)" "6 * sizeof (int)" } } */
+  fn1 (a, i);		/* { dg-final { gdb-test 25 "sizeof (a)" "6 * sizeof (int)" { xfail *-*-* } } } */
   return i;
 }
 
Index: testsuite/gcc.dg/guality/sra-1.c
===================================================================
--- testsuite/gcc.dg/guality/sra-1.c	(revision 170776)
+++ testsuite/gcc.dg/guality/sra-1.c	(working copy)
@@ -40,7 +40,7 @@  f3 (int k)
   asm ("" : "+r" (a.i));
   a.j++;
   bar (a.i);		/* { dg-final { gdb-test 43 "a.i" "4" } } */
-  bar (a.j);		/* { dg-final { gdb-test 43 "a.j" "14" } } */
+  bar (a.j);		/* { dg-final { gdb-test 43 "a.j" "14" { xfail *-*-* } } } */
   return a.i + a.j;
 }