From patchwork Thu Feb 26 00:03:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 443711 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 D33A014007D for ; Thu, 26 Feb 2015 11:03:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=sYEtwN0I; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=DTAXmUrLa1UVrH/PWbpPJIB1ScXByoMfvjkIyPXQWY6+kh VfWw6Oh3mDH3L19kUwjUdmVdKEiyYN8LiOiSvxYh3ZQveCYsijechwMAsIuVGva7 AMh6IaS46M5Gy4vRc6VYAbBnAHOg9LoOqpphBhNFgQQfdAGLoBtzoKXxDUf94= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=wWG8ZcBPejkXq9nkVfiLRMKqxJc=; b=sYEtwN0Ig6xN7xDQQZvV GKLzogIQFsFkt05Y4kO/Prka7DJV5OwWW/bXolqDKP+yUX2G4U5KohIPPaCiuaHw 7L44fqqoOmHnTLN5hTNpclaCZ0WeXSzBnj9p/h1v2Tw0NdmwqqDgSdQiCIqa10XO ZQzIXqkFIY1hHmST+O4gMpc= Received: (qmail 23067 invoked by alias); 26 Feb 2015 00:03:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 23056 invoked by uid 89); 26 Feb 2015 00:03:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Convert tst-iconv3 to use test-skeleton. Message-Id: <20150226000331.9636A2C3ADB@topped-with-meat.com> Date: Wed, 25 Feb 2015 16:03:31 -0800 (PST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=xXzY2WzFd6BoIScfywEA:9 a=CjuIK1q_8ugA:10 Tested x86_64-linux-gnu. Thanks, Roland * iconv/tst-iconv3.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. --- a/iconv/tst-iconv3.c +++ b/iconv/tst-iconv3.c @@ -7,8 +7,8 @@ #define BUFSIZE 10000 -int -main (int argc, char *argv[]) +static int +do_test (void) { char inbuf[BUFSIZE]; wchar_t outbuf[BUFSIZE]; @@ -51,3 +51,6 @@ main (int argc, char *argv[]) return result; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c"