From patchwork Wed Jan 25 19:00:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 137834 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]) by ozlabs.org (Postfix) with SMTP id F2D471007D2 for ; Thu, 26 Jan 2012 06:01:26 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1328122887; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Mail-Followup-To:Cc:Subject:Date:Message-ID: User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=msY6UJPre6ozzeGebfAXC7r6PKQ=; b=WW4p3hr7f4kMJh3 nDTVYrMCTXKMKb2Xg3Pw4o9u8jSfHDTgplTbaSfrv6EJUCn5g8P76IXbPUdu2x1e 8lBspeiqMzsFrMOK6hBO6V0NQXXr7ZRwiRE0hMMov/St1+wuJKyliDuXqlbm0XgA dTcbuXqh0TPLpFwLHbPaW5arizP0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:To:Mail-Followup-To:Cc:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=mKFYvvsaaaZr+rgLnZBFUSNV4qMTIxr06R/X5fMuL0iSZsASN0wmpNp8gPTupP Y/yOoPcz6ZmvD8P0mZEr+NxmhY+RLMm6K9jydTXahJOd/i0CBn8nTGqkpolachUe aj7ZEHjR5FC40Z3WBs69lkp9cYTcYMplQ8jFDWGgVIAcA=; Received: (qmail 24928 invoked by alias); 25 Jan 2012 19:01:20 -0000 Received: (qmail 24909 invoked by uid 22791); 25 Jan 2012 19:01:19 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jan 2012 19:01:05 +0000 Received: by wgbdy1 with SMTP id dy1so5096537wgb.8 for ; Wed, 25 Jan 2012 11:01:04 -0800 (PST) Received: by 10.180.88.10 with SMTP id bc10mr30401782wib.13.1327518063910; Wed, 25 Jan 2012 11:01:03 -0800 (PST) Received: from localhost (rsandifo.gotadsl.co.uk. [82.133.89.107]) by mx.google.com with ESMTPS id bu13sm4344553wib.6.2012.01.25.11.01.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jan 2012 11:01:02 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org, rdsandiford@googlemail.com Cc: libstdc++@gcc.gnu.org Subject: [v3, committed] Add dg-require-*s to various tests Date: Wed, 25 Jan 2012 19:00:58 +0000 Message-ID: <87bopry5cl.fsf@firetop.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 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 This patch adds dg-require-time to tests that require a system clock and dg-require-fileio to tests that perform file I/O. Tested on mipsisa64-elf and applied as (I hope) obvious. Richard libstdc++-v3/ * testsuite/20_util/system_clock/1.cc: Add dg-require-time. * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise. * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add dg-require-fileio. * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise. * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise. * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc: Likewise. * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise. Index: libstdc++-v3/testsuite/20_util/system_clock/1.cc =================================================================== --- libstdc++-v3/testsuite/20_util/system_clock/1.cc 2012-01-25 18:50:10.000000000 +0000 +++ libstdc++-v3/testsuite/20_util/system_clock/1.cc 2012-01-25 18:50:15.000000000 +0000 @@ -1,5 +1,6 @@ // { dg-options "-std=gnu++0x" } // { dg-require-cstdint "" } +// { dg-require-time "" } // Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation // Index: libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_1.cc =================================================================== --- libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_1.cc 2012-01-25 18:50:09.000000000 +0000 +++ libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_1.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-time "" } + // 22.2.5.3.1 time_put members #include Index: libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_2.cc =================================================================== --- libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_2.cc 2012-01-25 18:50:10.000000000 +0000 +++ libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_2.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-time "" } + // 22.2.5.3.1 time_put members #include Index: libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_3.cc =================================================================== --- libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_3.cc 2012-01-25 18:50:10.000000000 +0000 +++ libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_3.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-time "" } + // 22.2.5.3.1 time_put members #include Index: libstdc++-v3/testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc =================================================================== --- libstdc++-v3/testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc 2012-01-25 18:50:09.000000000 +0000 +++ libstdc++-v3/testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc 2012-01-25 18:50:15.000000000 +0000 @@ -20,6 +20,7 @@ // { dg-do run { xfail arm*-*-elf arm*-*-eabi } } // { dg-require-binary-io "" } +// { dg-require-fileio "" } // 27.6.1.3 unformatted input functions // @require@ %-*.tst %-*.txt Index: libstdc++-v3/testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc =================================================================== --- libstdc++-v3/testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc 2012-01-25 18:50:09.000000000 +0000 +++ libstdc++-v3/testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-fileio "" } + // 27.6.1.3 unformatted input functions // NB: ostream has a particular "seeks" category. Adopt this for istreams too. // @require@ %-*.tst %-*.txt Index: libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/1.cc =================================================================== --- libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/1.cc 2012-01-25 18:50:09.000000000 +0000 +++ libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/1.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-fileio "" } + // 27.6.1.3 unformatted input functions // NB: ostream has a particular "seeks" category. Adopt this for istreams too. // @require@ %-*.tst %-*.txt Index: libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc =================================================================== --- libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc 2012-01-25 18:50:09.000000000 +0000 +++ libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-fileio "" } + // 27.6.1.3 unformatted input functions // NB: ostream has a particular "seeks" category. Adopt this for istreams too. // @require@ %-*.tst %-*.txt Index: libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc =================================================================== --- libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc 2012-01-25 18:50:09.000000000 +0000 +++ libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-fileio "" } + // 27.6.2.4 basic_ostream seek members [lib.ostream.seeks] // @require@ %-*.tst %-*.txt // @diff@ %-*.tst %-*.txt Index: libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc =================================================================== --- libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc 2012-01-25 18:50:09.000000000 +0000 +++ libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc 2012-01-25 18:50:15.000000000 +0000 @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-fileio "" } + // 27.6.2.4 basic_ostream seek members #include