From: Nathan Sidwell Date: Fri, 28 Aug 2015 19:52:28 +0000 (+0000) Subject: struct-layout-1_generate.c: Simply use exit code for failure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a2b17c9ddcb00d54aae6de4a5f2367488c400ca;p=gcc.git struct-layout-1_generate.c: Simply use exit code for failure. * gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c: Simply use exit code for failure. From-SVN: r227310 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 47eae853fe3..59bf25348e5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2015-08-28 Nathan Sidwell + * 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. diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c b/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c index b6ae34e0003..80c7355a50e 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c +++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c @@ -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);