diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-19 03:59:16 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-19 03:59:16 +0000 |
commit | a1d7d78660e5d89e5b83f3254c26a3efd590a190 (patch) | |
tree | 948982b6236b519e930bd8ba1143d3813c6b0c89 /libstdc++-v3 | |
parent | 7ccba422fcae4560dbab2cc598bae0ae8d8c1224 (diff) | |
download | ppe42-gcc-a1d7d78660e5d89e5b83f3254c26a3efd590a190.tar.gz ppe42-gcc-a1d7d78660e5d89e5b83f3254c26a3efd590a190.zip |
PR testsuite/48675
* testsuite/20_util/hash/chi2_quality.cc (test_document_words): Stub
this part if SAMPLES < 100000.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172692 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/hash/chi2_quality.cc | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6eaa0264669..643e4f2448c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2011-04-19 Hans-Peter Nilsson <hp@axis.com> + + PR testsuite/48675 + * testsuite/20_util/hash/chi2_quality.cc (test_document_words): Stub + this part if SAMPLES < 100000. + 2011-04-18 Paolo Carlini <paolo.carlini@oracle.com> * include/std/type_traits (is_nothrow_default_constructible, diff --git a/libstdc++-v3/testsuite/20_util/hash/chi2_quality.cc b/libstdc++-v3/testsuite/20_util/hash/chi2_quality.cc index d626d829888..8a388349b8e 100644 --- a/libstdc++-v3/testsuite/20_util/hash/chi2_quality.cc +++ b/libstdc++-v3/testsuite/20_util/hash/chi2_quality.cc @@ -183,6 +183,10 @@ test_bit_string_set() void test_document_words() { + // That file is 187587 single-word lines. To avoid a timeout, just skip + // this part, which would take up to 95% of the program runtime (with + // SAMPLES == 10000), if we're not supposed to run anywhere that long. +#if SAMPLES >= 100000 bool test __attribute__((unused)) = true; const std::string f_name = "thirty_years_among_the_dead_preproc.txt"; std::ifstream in(f_name); @@ -199,6 +203,7 @@ test_document_words() const unsigned long k = words.size() / 20; double chi2 = chi2_hash(words, k); VERIFY( chi2 < k*1.1 ); +#endif } int |