Patchwork [committed] Replaced abort and exit in 1 Cilk Plus Array Notation test

login
register
mail settings
Submitter Iyer, Balaji V
Date June 12, 2013, 8:01 p.m.
Message ID <BF230D13CA30DD48930C31D4099330003A42E449@FMSMSX101.amr.corp.intel.com>
Download mbox | patch
Permalink /patch/250871/
State New
Headers show

Comments

Iyer, Balaji V - June 12, 2013, 8:01 p.m.
Hello Everyone,
	I replaced abort and exit in one of the Cilk Plus Array Notation test with return 1 and return 0, respectively. This patch (cut and pasted below) is committed as obvious.

Thanks,

Balaji V. Iyer.



Thanks,

Balaji V. Iyer.

Patch

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog     (revision 200037)
+++ gcc/testsuite/ChangeLog     (working copy)
@@ -1,3 +1,8 @@ 
+2013-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * c-c++-common/cilk-plus/AN/sec_implicit_ex.c (main): Replaced abort
+       and exit function calls with return 1 and return 0, respectively.
+
 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>

        * gcc.target/mips/umips-branch-1.c, gcc.target/mips/umips-branch-2.c:
Index: gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c
===================================================================
--- gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c   (revision 200037)
+++ gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c   (working copy)
@@ -1,10 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fcilkplus" } */

-void abort (void);
-void exit  (int);
-
-
 int main(void)
 {
   int jj, kk, array_3C[10][10][10];
@@ -24,10 +20,7 @@ 
     for (jj = 0; jj < 10; jj++)
       for (kk = 0; kk < 10; kk++)
        if (array_3[ii][jj][kk] != array_3C[ii][jj][kk])
-         abort ();
+         return 1;

-
-  exit (0);
-
   return 0;
 }