From patchwork Mon Jul 22 16:28:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1963331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=SJpcztlv; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WSQlW5Wy9z1yZ7 for ; Tue, 23 Jul 2024 02:31:35 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 76CBB385C6C6 for ; Mon, 22 Jul 2024 16:31:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id AD59D3858C33 for ; Mon, 22 Jul 2024 16:30:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AD59D3858C33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AD59D3858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721665827; cv=none; b=VbmojI10wux1BjrPhy6WTpW1ujLFUuEjfcT9d7Pa+d0vDfnv8KqpJw5uVw+UaMPACK7wGwgiCue0x9nCP51SCtzLCYCC54cZN0CjGdV+LcGzUuyz+t3VgS5VhDnJ1LvC8upVGBjCZsF2o/cvk7DHdm+XWaiu7M1aNU9GZuvRSYo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721665827; c=relaxed/simple; bh=eKFkKzPQbCdkviwQDWRqFBoQL0ouo2+0KEGP6SmfXpM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lE5v9A4YXQqKw4CWMAhJFah/PMwNEgLNA54lHpQjz8i7Dk9ybK/JDdgke+fdVzg57Selug+UlDH1D+0C91OfksRAj0d0aX8ELbHGM2RaB+Huyc9WpKoMi2fc9V3/0AVqtF1g+4sNheVHSQuJddaUKKEMAg2r61wn4dj4fMiXzrs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721665822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U6RxuXbGWuYpgyY6cIRG0lN2RItKepV/fJpKjqmA5aw=; b=SJpcztlvRdi7SYoE80TiyGCviwWpYHb3YksuZGBQK54DqDw1gRQD2rM+70Wcmnit2LsKox 55gHzdW5PqwvqIhYtOUJVPzEUwYwarBHsfAim2i3nwsGYk6tdUH+JFNiAXGcS9i+Z0Pj4j r8utAiXtuL34jxz5tZohC1eLbcVciI0= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-572-si0mlN_QPpiQFmswZr2wlA-1; Mon, 22 Jul 2024 12:30:20 -0400 X-MC-Unique: si0mlN_QPpiQFmswZr2wlA-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AB50A1955D45; Mon, 22 Jul 2024 16:30:19 +0000 (UTC) Received: from localhost (unknown [10.42.28.14]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D8C741955D52; Mon, 22 Jul 2024 16:30:18 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH 3/8] libstdc++: Use dg-additional-files in some I/O tests Date: Mon, 22 Jul 2024 17:28:37 +0100 Message-ID: <20240722163010.3508334-3-jwakely@redhat.com> In-Reply-To: <20240722163010.3508334-1-jwakely@redhat.com> References: <20240722163010.3508334-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-linux. -- >8 -- Use the dg-additional-files directive to declare files that need to be copied into the test's working directory. This is currently redundant (as all .tst and .txt files are copied for all tests) but is a step towards not copying all files. libstdc++-v3/ChangeLog: * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Use dg-additional-files. * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise. * testsuite/27_io/basic_filebuf/open/char/path.cc: Likewise. * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Likewise. * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise. * testsuite/27_io/basic_fstream/cons/char/path.cc: Likewise. * testsuite/27_io/basic_fstream/open/char/path.cc: Likewise. * testsuite/27_io/basic_ifstream/assign/1.cc: Likewise. * testsuite/27_io/basic_ifstream/cons/move.cc: Likewise. * testsuite/27_io/basic_ifstream/cons/char/path.cc: Likewise. * testsuite/27_io/basic_ifstream/open/char/path.cc: Likewise. * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: Likewise. * testsuite/27_io/objects/char/10.cc: Likewise. * testsuite/27_io/objects/char/12048-1.cc: Likewise. * testsuite/27_io/objects/char/12048-2.cc: Likewise. * testsuite/27_io/objects/char/12048-3.cc: Likewise. * testsuite/27_io/objects/char/12048-4.cc: Likewise. * testsuite/27_io/objects/char/12048-5.cc: Likewise. * testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise. * testsuite/27_io/objects/wchar_t/12048-2.cc: Likewise. * testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise. * testsuite/27_io/objects/wchar_t/12048-4.cc: Likewise. * testsuite/27_io/objects/wchar_t/12048-5.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: Likewise. --- libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/2.cc | 4 +++- libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc | 1 + libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/path.cc | 1 + .../testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc | 1 + .../testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc | 3 ++- .../testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc | 3 ++- .../testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc | 1 + .../testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc | 1 + libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc | 1 + libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/3.cc | 1 + libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/10096.cc | 1 + libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc | 1 + libstdc++-v3/testsuite/27_io/basic_fstream/open/char/path.cc | 1 + libstdc++-v3/testsuite/27_io/basic_ifstream/assign/1.cc | 3 ++- libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc | 1 + libstdc++-v3/testsuite/27_io/basic_ifstream/cons/move.cc | 3 ++- libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/path.cc | 1 + libstdc++-v3/testsuite/27_io/basic_ifstream/open/wchar_t/1.cc | 3 ++- libstdc++-v3/testsuite/27_io/objects/char/10.cc | 1 + libstdc++-v3/testsuite/27_io/objects/char/12048-1.cc | 1 + libstdc++-v3/testsuite/27_io/objects/char/12048-2.cc | 1 + libstdc++-v3/testsuite/27_io/objects/char/12048-3.cc | 1 + libstdc++-v3/testsuite/27_io/objects/char/12048-4.cc | 1 + libstdc++-v3/testsuite/27_io/objects/char/12048-5.cc | 1 + libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-1.cc | 1 + libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-2.cc | 1 + libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-3.cc | 1 + libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-4.cc | 1 + libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-5.cc | 1 + libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc | 1 + libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc | 1 + libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc | 1 + libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc | 1 + .../testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc | 2 ++ .../testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc | 2 ++ .../testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc | 2 ++ .../testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc | 2 ++ 37 files changed, 48 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/2.cc index aa2e1560178..c76631666f4 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/2.cc @@ -19,7 +19,9 @@ // with this library; see the file COPYING3. If not see // . -// 27.8.1.4 Overridden virtual functions +// C++98 27.8.1.4 Overridden virtual functions + +// { dg-additional-files "filebuf_virtuals-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc index 92faee0766d..ad119deb33f 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc @@ -1,4 +1,5 @@ // { dg-require-namedlocale "de_DE.ISO8859-15" } +// { dg-additional-files "filebuf_virtuals-1.txt" } // 2003-05-13 Benjamin Kosnik diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/path.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/path.cc index 0df22f2a47e..81e15e289b4 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/path.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/path.cc @@ -19,6 +19,7 @@ // { dg-do run { target c++17 } } // { dg-require-fileio "" } // { dg-require-filesystem-ts "" } +// { dg-additional-files "filebuf_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc index e074bd8899b..e02a004a506 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc @@ -20,6 +20,7 @@ // 27.8.1.4 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "filebuf_virtuals-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc index 6ca42a2dbdf..6403a8e643c 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc @@ -17,9 +17,10 @@ // with this library; see the file COPYING3. If not see // . -// 27.7.1.3 Overridden virtual functions +// C++98 27.8.1.4 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "filebuf_virtuals-1.tst filebuf_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc index 853eec405da..2cea0145d1a 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc @@ -17,9 +17,10 @@ // with this library; see the file COPYING3. If not see // . -// 27.7.1.3 Overridden virtual functions +// C++98 27.8.1.4 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "filebuf_virtuals-1.tst filebuf_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc index 4124dd84fc5..b91845476a8 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc @@ -20,6 +20,7 @@ // 27.7.1.3 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "filebuf_virtuals-1.tst filebuf_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc index f4bf73f46e4..c89f9bccec1 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc @@ -20,6 +20,7 @@ // 27.7.1.3 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "filebuf_virtuals-1.tst filebuf_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc index 7b77394cfaf..ca60379ef1f 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc @@ -20,6 +20,7 @@ // 27.8.1.4 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "filebuf_virtuals-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/3.cc index 699875c5dd9..cf5c7c8bd4d 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/3.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/3.cc @@ -20,6 +20,7 @@ // 27.8.1.4 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "sgetn.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/10096.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/10096.cc index b7a9d4d644a..02b4ab65590 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/10096.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/10096.cc @@ -20,6 +20,7 @@ // 27.8.1.4 Overridden virtual functions // { dg-require-fileio "" } +// { dg-additional-files "filebuf_virtuals-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc index 7fdcd2b4461..9f2865ff572 100644 --- a/libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc +++ b/libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc @@ -19,6 +19,7 @@ // { dg-do run { target c++17 } } // { dg-require-fileio "" } // { dg-require-filesystem-ts "" } +// { dg-additional-files "ofstream_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/open/char/path.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/open/char/path.cc index 141e614d8d1..01b149418b4 100644 --- a/libstdc++-v3/testsuite/27_io/basic_fstream/open/char/path.cc +++ b/libstdc++-v3/testsuite/27_io/basic_fstream/open/char/path.cc @@ -19,6 +19,7 @@ // { dg-do run { target c++17 } } // { dg-require-fileio "" } // { dg-require-filesystem-ts "" } +// { dg-additional-files "filebuf_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/assign/1.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/assign/1.cc index e6b71b919f2..210a0870ef0 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ifstream/assign/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ifstream/assign/1.cc @@ -17,8 +17,9 @@ // { dg-do run { target c++11 } } // { dg-require-fileio "" } +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } -// 27.9.1.8 Assign and swap [ifstream.assign] +// C++11 27.9.1.8 Assign and swap [ifstream.assign] #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc index bf3ebed1e07..060c2c8bcf3 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc @@ -19,6 +19,7 @@ // { dg-do run { target c++17 } } // { dg-require-fileio "" } // { dg-require-filesystem-ts "" } +// { dg-additional-files "ifstream_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/move.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/move.cc index 228965edfae..38cdb6494a3 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/move.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/move.cc @@ -17,8 +17,9 @@ // { dg-do run { target c++11 } } // { dg-require-fileio "" } +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } -// 27.9.1.7 basic_ifstream constructors [ifstream.cons] +// C++11 27.9.1.7 basic_ifstream constructors [ifstream.cons] #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/path.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/path.cc index d58063e3d20..76a3a3d7fb9 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/path.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/path.cc @@ -19,6 +19,7 @@ // { dg-do run { target c++17 } } // { dg-require-fileio "" } // { dg-require-filesystem-ts "" } +// { dg-additional-files "filebuf_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/open/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/open/wchar_t/1.cc index 243f732c859..097d33b2a1e 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ifstream/open/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ifstream/open/wchar_t/1.cc @@ -15,10 +15,11 @@ // with this library; see the file COPYING3. If not see // . -// 30.9.3.1 basic_ifstream constructors [ifstream.cons] +// C++17 30.9.3.1 basic_ifstream constructors [ifstream.cons] // { dg-do run { target *-*-mingw* } } // { dg-require-fileio "" } +// { dg-additional-files "ifstream_members-1.tst" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/char/10.cc b/libstdc++-v3/testsuite/27_io/objects/char/10.cc index 3f30c9939e8..726a933aafe 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/10.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/10.cc @@ -19,6 +19,7 @@ // { dg-require-fileio "" } // { dg-require-binary-io "" } +// { dg-additional-files "filebuf_virtuals-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/char/12048-1.cc b/libstdc++-v3/testsuite/27_io/objects/char/12048-1.cc index 4ee3a1942a3..2d1ae04500d 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/12048-1.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/12048-1.cc @@ -19,6 +19,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/char/12048-2.cc b/libstdc++-v3/testsuite/27_io/objects/char/12048-2.cc index d6a656cbb20..c0ae079e7fc 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/12048-2.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/12048-2.cc @@ -16,6 +16,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/char/12048-3.cc b/libstdc++-v3/testsuite/27_io/objects/char/12048-3.cc index 4d2dcfa8902..8a10428c124 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/12048-3.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/12048-3.cc @@ -16,6 +16,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/char/12048-4.cc b/libstdc++-v3/testsuite/27_io/objects/char/12048-4.cc index 7cabf83d82d..4daa30fd020 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/12048-4.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/12048-4.cc @@ -16,6 +16,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/char/12048-5.cc b/libstdc++-v3/testsuite/27_io/objects/char/12048-5.cc index 7ddd97baef9..f579e91d3ab 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/12048-5.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/12048-5.cc @@ -24,6 +24,7 @@ // { dg-do run { xfail *-*-* } } // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-1.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-1.cc index 156bb01163b..434a85ded75 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-1.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-1.cc @@ -19,6 +19,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-2.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-2.cc index d7ef6577db5..6d1033c4054 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-2.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-2.cc @@ -16,6 +16,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-3.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-3.cc index 5a97b2e4358..f38457be7bc 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-3.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-3.cc @@ -19,6 +19,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-4.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-4.cc index 7b9a99be953..58e16355887 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-4.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-4.cc @@ -16,6 +16,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-5.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-5.cc index 13cd1061ef9..7efe4a2c6ef 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-5.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/12048-5.cc @@ -21,6 +21,7 @@ // { dg-do run { xfail *-*-* } } // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc index abef61fa11b..ec57eaf8a8c 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc @@ -18,6 +18,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc index 058b393814e..91db50b8ed5 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc @@ -18,6 +18,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc index d3b89185bb0..e2f3100a22a 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc @@ -18,6 +18,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc index e6076a93af2..72889fbd9b5 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc @@ -18,6 +18,7 @@ // . // { dg-require-fileio "" } +// { dg-additional-files "cin_unget-1.txt" } #include #include diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc index 78248942c72..e71aee29cf2 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-additional-files "cin_unget-1.txt" } + #include #include diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc index 1be110eec6b..529353787e9 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc @@ -20,6 +20,8 @@ #include #include +// { dg-additional-files "cin_unget-1.txt" } + // libstdc++/12048 void test03() { diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc index 51639d313c1..8274350b0e0 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-additional-files "cin_unget-1.txt" } + #include #include diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc index 2362251eeaf..7989edc0c3f 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-additional-files "cin_unget-1.txt" } + #include #include