From patchwork Mon Dec 15 22:25:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arjun Shankar X-Patchwork-Id: 421699 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 618801400DE for ; Tue, 16 Dec 2014 09:23:28 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to :content-transfer-encoding; q=dns; s=default; b=UttlfH5eqDemWDlS 5V2GRyx5qPvHj0KghiBeVKZ2yU50+LWuU7IKLNqKEPcE3ja6bMJ8oFqEmTqGYpIP uYitAmkzBj01LJQeqYTrUovUy9rYddpyLJDrFQn5QNAzV7BWpYzSbiR/cUxlcY6B +joy032s/BrS60gFUITL+wh2g2U= 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:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to :content-transfer-encoding; s=default; bh=pEOCACe9geoEdb5iZBF4lX 73JtA=; b=iWWAFXAmFa+YTLynT7vPW8fOXfz2/HaL8I1pYe3xySD0fRN8yjtY/T j3NLvc9UoIdjoPfG9cXRfh4X2fESfFL2D/w+r8piBz9010GTEC3znOB/7bN+rnXJ h/uYdpdZqSCV8bM9hSxn9m8PGUw+L5RM/5AicPx4uGJXIncJYQPak= Received: (qmail 11222 invoked by alias); 15 Dec 2014 22:23:23 -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 11196 invoked by uid 89); 15 Dec 2014 22:23:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: arati.lostca.se Date: Mon, 15 Dec 2014 22:25:33 +0000 From: Arjun Shankar To: libc-alpha@sourceware.org Subject: [PATCH 3/3] Modify libio/tst-fopenloc.c to use test-skeleton.c Message-ID: <20141215222533.GD68022@arati.lostca.se> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) This test would earlier fail when run under test-skeleton.c due to bug #17522 in 'fputws'. That bug is now fixed and so this test may be modified. ChangeLog: 2014-12-15 Arjun Shankar * libio/tst-fopenloc.c: Use test-skeleton.c. --- libio/tst-fopenloc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libio/tst-fopenloc.c b/libio/tst-fopenloc.c index 8fe83fd..140d976 100644 --- a/libio/tst-fopenloc.c +++ b/libio/tst-fopenloc.c @@ -29,8 +29,8 @@ static const char inputfile[] = "../iconvdata/testdata/ISO-8859-1"; -int -main (void) +static int +do_test (void) { FILE *fp; @@ -59,3 +59,6 @@ main (void) return 0; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c"