From patchwork Mon Aug 24 13:58:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 510031 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 33DD51402A0 for ; Mon, 24 Aug 2015 23:58:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=vU6YJhO8; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=GyF+8U322www3u41zItTHLBPFDoK2D94UVDgPOg3Nug1kDNLde XAdyx6+MrDRbz+oRQDQzhy1BQ84km/mbp8QxEus5FR35LCYqgL12J9LGZkkrfpHh 4QigeBpOzLc51aQ2Zsam6EIinB9y+L+3W5jjDOO2JHc0SMWX/GAmvtx60= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=IULjL4upJx4GVOW3rwQwyVYGS1Y=; b=vU6YJhO84/Zgc8ZmEhI/ V+KBgjIMNBKHpShwKlD5PxSPrvtTVULvxjzrw3dAurAjXEQT8uknqfCQ9jRTSOP+ NdaNHIG00ji30AiSAxMjmhG86XNdf9t+YsoANny5EAb0Iye9XdliULkUxShbW7gq sZJNY5nSrfRH1HDKiofb/nQ= Received: (qmail 73254 invoked by alias); 24 Aug 2015 13:58:07 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 73239 invoked by uid 89); 24 Aug 2015 13:58:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qk0-f179.google.com Received: from mail-qk0-f179.google.com (HELO mail-qk0-f179.google.com) (209.85.220.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 24 Aug 2015 13:58:05 +0000 Received: by qkbm65 with SMTP id m65so67433731qkb.2 for ; Mon, 24 Aug 2015 06:58:03 -0700 (PDT) X-Received: by 10.55.192.75 with SMTP id o72mr528001qki.88.1440424683150; Mon, 24 Aug 2015 06:58:03 -0700 (PDT) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id 39sm9480370qgk.7.2015.08.24.06.58.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2015 06:58:02 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: [test] remove another io need Message-ID: <55DB22E9.2060303@acm.org> Date: Mon, 24 Aug 2015 09:58:01 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 This is another case of a test failing for PTX because it wanted to use IO. We don't need to call fflush and abort, we could just return 'exit (1)'. This changes the relevant macro to do just that. As with the matrix patch, other targets should be unaffected. Any objections? nathan 2015-08-24 Nathan Sidwell * gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c: Simply use exit code for failure. Index: gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c =================================================================== --- gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c (revision 227123) +++ gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c (working copy) @@ -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);