From patchwork Fri Mar 27 19:56:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 455577 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 A2A7014012C for ; Sat, 28 Mar 2015 06:56:51 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=ZknTO4Fc; 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=qfoqAKBYIbyga90djCz2cYw9wmriEQRDkrRuf1nmgJNHm0 W1QmdycLLn/751xWtXRStwYqzuPj8JScOfqLE1PCmbiQ9rkVwzdb1g7Fq+aw935i adoJAY7Z/pGKsFcPYNEl1fwLoy+YL39y4mTnDVeFPu/P6KlG+0z/tFkzP0i2o= 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=AJ7UNUgoCWvdA3TsinY3O0DL2iw=; b=ZknTO4FcGmiTmCfM1dKu PX283Dqz8ozRaQh4S/h0ZiTFrcaJU6g6195MwuMyn6UQr4Y+VdzR525ixCyhbuuf TWScKAAufDRag3K81gkGDm4/3ueG1ZAFettbzHSm64UznC9Ku8esqAT3zVFBErrw pSgSSojvEzosqs8dqCTlLgo= Received: (qmail 25271 invoked by alias); 27 Mar 2015 19:56:45 -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 25121 invoked by uid 89); 27 Mar 2015 19:56:44 -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 dlfcn/tststatic to use test-skeleton. Message-Id: <20150327195641.377F72C3B18@topped-with-meat.com> Date: Fri, 27 Mar 2015 12:56:41 -0700 (PDT) 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=XXGZnhwXJaEB-I1e4eIA:9 a=CjuIK1q_8ugA:10 2015-03-27 Roland McGrath * dlfcn/tststatic.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. --- a/dlfcn/tststatic.c +++ b/dlfcn/tststatic.c @@ -2,8 +2,8 @@ #include #include -int -main (void) +static int +do_test (void) { void *handle; int (*test) (int); @@ -33,3 +33,6 @@ main (void) dlclose (handle); return 0; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c"