diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-22 15:15:16 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-07-24 12:25:26 +0100 |
commit | 171af3580de54d482c6a32fb249e96000a9e10b8 (patch) | |
tree | 6342120d6a4141bc4c41c7bb939f9d3f4b1d6e6d | |
parent | 681417f7a0044b5603fa7d4db57c5aecc914fc8e (diff) | |
download | gcc-171af3580de54d482c6a32fb249e96000a9e10b8.zip gcc-171af3580de54d482c6a32fb249e96000a9e10b8.tar.gz gcc-171af3580de54d482c6a32fb249e96000a9e10b8.tar.bz2 |
libstdc++: Use dg-additional-files in some non-I/O tests
libstdc++-v3/ChangeLog:
* testsuite/20_util/hash/chi2_q_document_words.cc: Use
dg-additional-files for input text.
* testsuite/performance/ext/pb_ds/all_text_find.cc: Likewise.
* testsuite/performance/ext/pb_ds/multimap_text_find.hpp:
Likewise.
* testsuite/performance/ext/pb_ds/multimap_text_insert.hpp:
Likewise.
* testsuite/performance/ext/pb_ds/multimap_text_insert_mem.hpp:
Likewise.
* testsuite/performance/ext/pb_ds/priority_queue_text_join.cc:
Likewise.
* testsuite/performance/ext/pb_ds/priority_queue_text_modify.hpp: Likewise.
* testsuite/performance/ext/pb_ds/priority_queue_text_pop_mem.cc: Likewise.
* testsuite/performance/ext/pb_ds/priority_queue_text_push.cc:
Likewise.
* testsuite/performance/ext/pb_ds/priority_queue_text_push_pop.cc: Likewise.
* testsuite/performance/ext/pb_ds/tree_text_insert.cc: Likewise.
* testsuite/performance/ext/pb_ds/tree_text_lor_find.cc:
Likewise.
12 files changed, 24 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/20_util/hash/chi2_q_document_words.cc b/libstdc++-v3/testsuite/20_util/hash/chi2_q_document_words.cc index a6ebc00..3c77527 100644 --- a/libstdc++-v3/testsuite/20_util/hash/chi2_q_document_words.cc +++ b/libstdc++-v3/testsuite/20_util/hash/chi2_q_document_words.cc @@ -19,6 +19,8 @@ // along with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + #include "chi2_quality.h" // Tests chi^2 for a set of words taken from a document written in English. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/all_text_find.cc b/libstdc++-v3/testsuite/performance/ext/pb_ds/all_text_find.cc index 13c73a7..df822c3 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/all_text_find.cc +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/all_text_find.cc @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file text_find_timing_test.cpp * Contains test for finding text. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_find.hpp b/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_find.hpp index 18e383e..dbaaf04 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_find.hpp +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_find.hpp @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file multimap_text_find_timing_test.cpp * Contains test for inserting text words. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert.hpp b/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert.hpp index 737be39..2c86b52 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert.hpp +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert.hpp @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file multimap_text_insert_timing_test.cpp * Contains test for inserting text words. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert_mem.hpp b/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert_mem.hpp index 9ce2353..ab75531 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert_mem.hpp +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/multimap_text_insert_mem.hpp @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file multimap_text_insert_mem_usage_test.cpp * Contains test for inserting text words. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_join.cc b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_join.cc index a515eea..aee5253 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_join.cc +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_join.cc @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file priority_queue_text_join_timing_test.cpp * Contains test for finding text. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_modify.hpp b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_modify.hpp index cb62b61..108b672 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_modify.hpp +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_modify.hpp @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file priority_queue_text_modify_timing_test.cpp * Contains test for finding text. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_pop_mem.cc b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_pop_mem.cc index 0a1003f..862de98 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_pop_mem.cc +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_pop_mem.cc @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file priority_queue_text_push_pop_timing_test.cpp * Contains test for finding text. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push.cc b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push.cc index 5a25a9a..4ba1fa3 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push.cc +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push.cc @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file priority_queue_text_push_timing_test.cpp * Contains test for finding text. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push_pop.cc b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push_pop.cc index 4013cd2..0a12809 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push_pop.cc +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/priority_queue_text_push_pop.cc @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file priority_queue_text_push_pop_timing_test.cpp * Contains test for finding text. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_insert.cc b/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_insert.cc index 760006e..f439cad 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_insert.cc +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_insert.cc @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file tree_text_insert_timing_test.cpp * Contains test for finding text. diff --git a/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_lor_find.cc b/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_lor_find.cc index 53ed553..04dabcc 100644 --- a/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_lor_find.cc +++ b/libstdc++-v3/testsuite/performance/ext/pb_ds/tree_text_lor_find.cc @@ -29,6 +29,8 @@ // purpose. It is provided "as is" without express or implied // warranty. +// { dg-additional-files "thirty_years_among_the_dead_preproc.txt" } + /** * @file tree_text_lor_find_timing_test.cpp * Contains test for finding text with locality of reference. |