struct-layout-1_generate.c: Simply use exit code for failure.
authorNathan Sidwell <nathan@acm.org>
Fri, 28 Aug 2015 19:52:28 +0000 (19:52 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 28 Aug 2015 19:52:28 +0000 (19:52 +0000)
* gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c: Simply
use exit code for failure.

From-SVN: r227310

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c

index 47eae853fe33589381c428ecd531ea85f9fd1cce..59bf25348e56db9040bcce1e1d7b2ecd651afb49 100644 (file)
@@ -1,5 +1,8 @@
 2015-08-28  Nathan Sidwell  <nathan@acm.org>
 
+       * gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c: Simply
+       use exit code for failure.
+
        * gcc/testsuite/gcc.dg/torture/matrix-1.c: Use plain printf.
        * gcc/testsuite/gcc.dg/torture/matrix-2.c: Likewise.
        * gcc/testsuite/gcc.dg/torture/matrix-5.c: Likewise.
index b6ae34e000306e2a53b872262e25f89ea38d7491..80c7355a50e6903300bb584303fcc6c08d65c60a 100644 (file)
@@ -805,12 +805,7 @@ int main (void)\n\
 #define TX(n, type, attrs, fields, ops)   test##n ();\n\
 #include \"t%03d_test.h\"\n\
 #undef TX\n\
-  if (fails)\n\
-    {\n\
-      fflush (stdout);\n\
-      abort ();\n\
-    }\n\
-  exit (0);\n\
+  exit (fails != 0);\n\
 }\n", filecnt, filecnt);
   fclose (outfile);
   sprintf (destptr, "t%03d_x.c", filecnt);