PR testsuite/31884
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Aug 2007 17:24:22 +0000 (17:24 +0000)
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Aug 2007 17:24:22 +0000 (17:24 +0000)
* testsuite/ext/pb_ds/example/priority_queue_dijkstra.cc (main): Do
not access deleted nodes.

* testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc,
testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc,
testsuite/27_io/basic_filebuf/open/char/4.cc,
testsuite/27_io/objects/char/9.cc: Use dg-require-fileio.
* testsuite/ext/forced_exception_error/cons_virtual_derivation.cc,
testsuite/ext/pb_ds/regression/hash_data_map_rand.cc,
testsuite/ext/pb_ds/regression/trie_data_map_rand.cc,
testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc,
testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc,
testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc,
testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc,
testsuite/ext/pb_ds/regression/priority_queue_rand.cc,
testsuite/ext/pb_ds/regression/tree_data_map_rand.cc,
testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc,
testsuite/ext/throw_allocator/deallocate_global.cc,
testsuite/ext/throw_allocator/check_delete.cc,
testsuite/ext/throw_allocator/check_allocate_max_size.cc,
testsuite/ext/throw_allocator/check_deallocate_null.cc,
testsuite/ext/throw_allocator/check_new.cc,
testsuite/ext/throw_allocator/deallocate_local.cc,
testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/cons/gen1.cc,
testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/cons/gen1.cc,
testsuite/tr1/5_numerical_facilities/random/linear_congruential/cons/gen1.cc,
testsuite/tr1/5_numerical_facilities/random/mersenne_twister/cons/gen1.cc,
testsuite/23_containers/list/modifiers/insert/25288.cc: Use
dg-require-time.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127590 138bc75d-0d04-0410-961f-82ee72b054a4

27 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/list/modifiers/insert/25288.cc
libstdc++-v3/testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc
libstdc++-v3/testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/4.cc
libstdc++-v3/testsuite/27_io/objects/char/9.cc
libstdc++-v3/testsuite/ext/forced_exception_error/cons_virtual_derivation.cc
libstdc++-v3/testsuite/ext/pb_ds/example/priority_queue_dijkstra.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_deallocate_null.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_delete.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_new.cc
libstdc++-v3/testsuite/ext/throw_allocator/deallocate_global.cc
libstdc++-v3/testsuite/ext/throw_allocator/deallocate_local.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/cons/gen1.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/mersenne_twister/cons/gen1.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/cons/gen1.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/cons/gen1.cc

index a020f99..93443df 100644 (file)
@@ -1,3 +1,36 @@
+2007-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR testsuite/31884
+       * testsuite/ext/pb_ds/example/priority_queue_dijkstra.cc (main): Do
+       not access deleted nodes.
+
+       * testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc,
+       testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc,
+       testsuite/27_io/basic_filebuf/open/char/4.cc,
+       testsuite/27_io/objects/char/9.cc: Use dg-require-fileio.
+       * testsuite/ext/forced_exception_error/cons_virtual_derivation.cc,
+       testsuite/ext/pb_ds/regression/hash_data_map_rand.cc,
+       testsuite/ext/pb_ds/regression/trie_data_map_rand.cc,
+       testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc,
+       testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc,
+       testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc,
+       testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc,
+       testsuite/ext/pb_ds/regression/priority_queue_rand.cc,
+       testsuite/ext/pb_ds/regression/tree_data_map_rand.cc,
+       testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc,
+       testsuite/ext/throw_allocator/deallocate_global.cc,
+       testsuite/ext/throw_allocator/check_delete.cc,
+       testsuite/ext/throw_allocator/check_allocate_max_size.cc,
+       testsuite/ext/throw_allocator/check_deallocate_null.cc,
+       testsuite/ext/throw_allocator/check_new.cc,
+       testsuite/ext/throw_allocator/deallocate_local.cc,
+       testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/cons/gen1.cc,
+       testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/cons/gen1.cc,
+       testsuite/tr1/5_numerical_facilities/random/linear_congruential/cons/gen1.cc,
+       testsuite/tr1/5_numerical_facilities/random/mersenne_twister/cons/gen1.cc,
+       testsuite/23_containers/list/modifiers/insert/25288.cc: Use
+       dg-require-time.
+
 2007-08-17  Paolo Carlini  <pcarlini@suse.de>
 
        * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
index 340f336..4faaad6 100644 (file)
@@ -18,6 +18,8 @@
 
 // 23.2.2.3 list modifiers [lib.list.modifiers]
 
+// { dg-require-time "" }
+
 #include <list>
 #include <testsuite_hooks.h>
 #include <ext/throw_allocator.h>
index 378583a..5e838f3 100644 (file)
@@ -24,6 +24,8 @@
 #include <cstring>
 #include <testsuite_hooks.h>
 
+// { dg-require-fileio "" }
+
 // In the occasion of libstdc++/25482
 void test01()
 {
index 682c515..4e81542 100644 (file)
@@ -23,6 +23,8 @@
 #include <algorithm>
 #include <testsuite_hooks.h>
 
+// { dg-require-fileio "" }
+
 // In the occasion of libstdc++/25482
 void test01()
 {
index dde8086..97200a6 100644 (file)
@@ -18,6 +18,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-fileio "" }
+
 #include <fstream>
 #include <testsuite_hooks.h>
 
index 6ad7c47..4da987b 100644 (file)
@@ -17,6 +17,8 @@
 // with this library; see the file COPYING.  If not, write to the Free
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
+
+// { dg-require-fileio "" }
  
 #include <iostream>
 #include <cstdio>
index 4ce8c67..ae6ef0b 100644 (file)
@@ -19,6 +19,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-time "" }
+
 #include <ext/throw_allocator.h>
 #include <testsuite_api.h>
 
index 53a788d..5eb4549 100644 (file)
@@ -151,12 +151,16 @@ int main()
          // node to the neighbor.
          const size_t pot_dist = dist + a_a_edge_legnth[node_id][neighbor_i];
 
+         if (a_it[neighbor_i] == a_it[0])
+           continue;
+
          // "Relax" the distance (if appropriate) through modify.
          if (pot_dist < a_it[neighbor_i]->second)
            p.modify(a_it[neighbor_i], pq_value(neighbor_i, pot_dist));
         }
 
       // Done with the node, so we pop it.
+      a_it[node_id] = a_it[0];
       p.pop();
     }
 
index d82813e..9113508 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index 652774a..2c55313 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index 98bbf59..6849a02 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index 90e0de0..3320e42 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index 67e5b6f..3860e66 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for priority queues.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/priority_queue/rand_regression_test.hpp>
 #include <regression/priority_queue/common_type.hpp>
 
index 645d2ee..5a2a29c 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index 1e3a3db..22f00c4 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index 90e4fc6..61e72bc 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index cd1991e..1840ebf 100644 (file)
@@ -45,6 +45,8 @@
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/common_type.hpp>
 
index 902361e..9e5c041 100644 (file)
@@ -17,6 +17,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-time "" }
+
 #include <ext/throw_allocator.h>
 #include <testsuite_allocator.h>
 
index 8e6e1a0..c49ed2d 100644 (file)
@@ -17,6 +17,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-time "" }
+
 #include <ext/throw_allocator.h>
 #include <testsuite_allocator.h>
 
index a8e7167..7dd7b1a 100644 (file)
@@ -17,6 +17,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-time "" }
+
 #include <cstdlib>
 #include <ext/throw_allocator.h>
 #include <testsuite_hooks.h>
index 1b00412..55c1d2b 100644 (file)
@@ -17,6 +17,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-time "" }
+
 #include <cstdlib>
 #include <ext/throw_allocator.h>
 #include <testsuite_hooks.h>
index c8bbe51..1eb90ab 100644 (file)
@@ -17,6 +17,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-time "" }
+
 #include <string>
 #include <stdexcept>
 #include <ext/throw_allocator.h>
index 794232e..d6d57e7 100644 (file)
@@ -17,6 +17,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-require-time "" }
+
 #include <string>
 #include <ext/throw_allocator.h>
 #include <testsuite_hooks.h>
index 3d47cd6..823e66e 100644 (file)
@@ -21,6 +21,8 @@
 // 5.1.4.1 class template linear_congruential [tr.rand.eng.lcong]
 // 5.1.1 Table 16 line 3 template ctor(gen)
 
+// { dg-require-time "" }
+
 #include <ctime>
 #include <tr1/random>
 #include <testsuite_hooks.h>
index 7861954..5e4075d 100644 (file)
@@ -21,6 +21,8 @@
 // 5.1.4.2 class template mersenne_twister [tr.rand.eng.mers]
 // 5.1.1 Table 16 line 3 Gen ctor
 
+// { dg-require-time "" }
+
 #include <ctime>
 #include <tr1/random>
 #include <testsuite_hooks.h>
index 5091445..ef583dd 100644 (file)
@@ -21,6 +21,8 @@
 // 5.1.4.3 class template subtract_with_carry [tr.rand.eng.sub]
 // 5.1.1 Table 16 line 3 Gen ctor
 
+// { dg-require-time "" }
+
 #include <ctime>
 #include <tr1/random>
 #include <testsuite_hooks.h>
index 0a95397..d7a894b 100644 (file)
@@ -21,6 +21,8 @@
 // 5.1.4.4 class template subtract_with_carry_01 [tr.rand.eng.sub1]
 // 5.1.1 Table 16 line 3 Gen ctor
 
+// { dg-require-time "" }
+
 #include <ctime>
 #include <tr1/random>
 #include <testsuite_hooks.h>