From patchwork Thu Apr 20 11:38:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 752751 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 3w7xhS2Gxnz9ryk for ; Thu, 20 Apr 2017 21:38:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="p7lutGrg"; 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=UHlIWfaUQPhMIogoC9mmW4Q6mBvvQsTSS9z2xvsy7WsGGR5Nxq f3Uv5L/MueMLvl0mbEt2nCfJSYbN6Uo1ugjbAXz/sQZKtwHE09RBEg0c8v7Ex4/D VdEgajw1eoIXdhfFLz8GFYQ/GMqhFY/7gq36VLV6GHQHu0RoqL0w9VhNU= 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=fq91bH3zP4wLD6yn0/hJDlPLIOU=; b=p7lutGrg0Teq9YJPmp2K DPbph9s8RET23yZmrM7fKMfMhkWYDqDf0MQb1XmJR3anmCZrAQr27Uq5ljzRBWbR hhmfdKvWliPyXx4vjOhbOIYmUCk9Fzse4V6CtIKRsI5Fr+WVH+Gt1BuvKsppiaFG C+05cJshZAlsTH0LurY8yP4= Received: (qmail 89863 invoked by alias); 20 Apr 2017 11:38:18 -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 89853 invoked by uid 89); 20 Apr 2017 11:38:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Apr 2017 11:38:16 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 02122AB1A for ; Thu, 20 Apr 2017 11:38:15 +0000 (UTC) To: GCC Patches From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH][STAGE1] Add prefix to test verification in guality.h Message-ID: Date: Thu, 20 Apr 2017 13:38:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-IsSubscribed: yes Hello. Currently tests that include guality.h header file and us the fancy macros for verification produce output like: FAIL: o is -1, not 268566560 FAIL: w is -1, not 268566624 FAIL: w is -1, not 268566624 FAIL: o is -1, not 268566576 FAIL: w is -1, not 268566624 FAIL: w is -1, not 268566624 FAIL: o is -1, not 268566592 which is quite unpleasant to find a name of test which is responsible for that. Thus, I'm suggesting to add prefix for the messages coming from the header file to: FAIL: guality/guality.h: w is -1, not 6299888 FAIL: guality/guality.h: w is -1, not 6299888 FAIL: guality/guality.h: w is -1, not 6299888 FAIL: guality/guality.h: w is -1, not 6299888 FAIL: guality/guality.h: ret is -1, not 6299872 FAIL: guality/guality.h: e is -1, not 6299888 FAIL: guality/guality.h: e is -1, not 6299888 FAIL: guality/guality.h: e is -1, not 6299888 Ready to be installed? Thanks, Martin From 4895528a00883afb843f1e493388489472ed7145 Mon Sep 17 00:00:00 2001 From: marxin Date: Thu, 20 Apr 2017 13:27:38 +0200 Subject: [PATCH] Add prefix to test verification in guality.h gcc/testsuite/ChangeLog: 2017-04-20 Martin Liska * gcc.dg/guality/guality.h: Add prefix to test verification. --- gcc/testsuite/gcc.dg/guality/guality.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.dg/guality/guality.h b/gcc/testsuite/gcc.dg/guality/guality.h index d5867d8ba96..94722510ff0 100644 --- a/gcc/testsuite/gcc.dg/guality/guality.h +++ b/gcc/testsuite/gcc.dg/guality/guality.h @@ -55,6 +55,8 @@ along with GCC; see the file COPYING3. If not see so that __FILE__ and __LINE__ will be usable to identify them. */ +#define GUALITY_TEST "guality/guality.h" + /* This is the type we use to pass values to guality_check. */ typedef intmax_t gualchk_t; @@ -274,7 +276,7 @@ continue\n\ i = guality_count[INCORRECT]; - fprintf (stderr, "%s: %i PASS, %i FAIL, %i UNRESOLVED\n", + fprintf (stderr, "%s: " GUALITY_TEST ": %i PASS, %i FAIL, %i UNRESOLVED\n", i ? "FAIL" : "PASS", guality_count[PASS], guality_count[INCORRECT], guality_count[INCOMPLETE]); @@ -361,13 +363,13 @@ continue\n\ switch (result) { case PASS: - fprintf (stderr, "PASS: %s is %lli\n", name, value); + fprintf (stderr, "PASS: " GUALITY_TEST ": %s is %lli\n", name, value); break; case INCORRECT: - fprintf (stderr, "FAIL: %s is %lli, not %lli\n", name, xvalue, value); + fprintf (stderr, "FAIL: " GUALITY_TEST ": %s is %lli, not %lli\n", name, xvalue, value); break; case INCOMPLETE: - fprintf (stderr, "%s: %s is %s, expected %lli\n", + fprintf (stderr, "%s: " GUALITY_TEST ": %s is %s, expected %lli\n", unknown_ok ? "UNRESOLVED" : "FAIL", name, unavailable < 0 ? "not computable" : "optimized away", value); result = unknown_ok ? INCOMPLETE : INCORRECT; -- 2.12.2