libstdc++: Use dg-additional-files in some algorithm tests
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/25_algorithms/advance/istreambuf_iterators/char/2.cc: Use dg-additional-files. * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2.cc: Likewise. * testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise. * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc: Likewise. * testsuite/25_algorithms/copy_n/istreambuf_iterator/2.cc: Likewise. * testsuite/25_algorithms/copy_n/istreambuf_iterator/deque.cc: Likewise. * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: Likewise. * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc: Likewise.
This commit is contained in:
parent
515da03a83
commit
681417f7a0
8 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
#include <iterator>
|
||||
#include <fstream>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
#include <iterator>
|
||||
#include <fstream>
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <testsuite_hooks.h>
|
||||
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
// In the occasion of libstdc++/25482
|
||||
void test01()
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
#include <iterator>
|
||||
#include <fstream>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// { dg-do run { target c++11 } }
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
// Copyright (C) 2020-2024 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// { dg-do run { target c++11 } }
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
// Copyright (C) 2020-2024 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <testsuite_hooks.h>
|
||||
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
// In the occasion of libstdc++/25482
|
||||
void test01()
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-require-fileio "" }
|
||||
// { dg-additional-files "istream_unformatted-1.txt" }
|
||||
|
||||
#include <iterator>
|
||||
#include <fstream>
|
||||
|
|
Loading…
Add table
Reference in a new issue