re PR testsuite/31884 (priority_queue_dijkstra.cc operates on deallocated memory)
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. From-SVN: r127590
This commit is contained in:
parent
4b36461502
commit
eb0619fe9e
|
@ -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>
|
2007-08-17 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
|
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
// 23.2.2.3 list modifiers [lib.list.modifiers]
|
// 23.2.2.3 list modifiers [lib.list.modifiers]
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
|
// { dg-require-fileio "" }
|
||||||
|
|
||||||
// In the occasion of libstdc++/25482
|
// In the occasion of libstdc++/25482
|
||||||
void test01()
|
void test01()
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
|
// { dg-require-fileio "" }
|
||||||
|
|
||||||
// In the occasion of libstdc++/25482
|
// In the occasion of libstdc++/25482
|
||||||
void test01()
|
void test01()
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-fileio "" }
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-fileio "" }
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
#include <testsuite_api.h>
|
#include <testsuite_api.h>
|
||||||
|
|
||||||
|
|
|
@ -151,12 +151,16 @@ int main()
|
||||||
// node to the neighbor.
|
// node to the neighbor.
|
||||||
const size_t pot_dist = dist + a_a_edge_legnth[node_id][neighbor_i];
|
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.
|
// "Relax" the distance (if appropriate) through modify.
|
||||||
if (pot_dist < a_it[neighbor_i]->second)
|
if (pot_dist < a_it[neighbor_i]->second)
|
||||||
p.modify(a_it[neighbor_i], pq_value(neighbor_i, pot_dist));
|
p.modify(a_it[neighbor_i], pq_value(neighbor_i, pot_dist));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Done with the node, so we pop it.
|
// Done with the node, so we pop it.
|
||||||
|
a_it[node_id] = a_it[0];
|
||||||
p.pop();
|
p.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for priority queues.
|
* Contains a random-operation test for priority queues.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/priority_queue/rand_regression_test.hpp>
|
#include <regression/rand/priority_queue/rand_regression_test.hpp>
|
||||||
#include <regression/priority_queue/common_type.hpp>
|
#include <regression/priority_queue/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
* Contains a random-operation test for maps and sets.
|
* Contains a random-operation test for maps and sets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <regression/rand/assoc/rand_regression_test.hpp>
|
#include <regression/rand/assoc/rand_regression_test.hpp>
|
||||||
#include <regression/assoc/common_type.hpp>
|
#include <regression/assoc/common_type.hpp>
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
#include <testsuite_allocator.h>
|
#include <testsuite_allocator.h>
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
#include <testsuite_allocator.h>
|
#include <testsuite_allocator.h>
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
// USA.
|
// USA.
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <ext/throw_allocator.h>
|
#include <ext/throw_allocator.h>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
// 5.1.4.1 class template linear_congruential [tr.rand.eng.lcong]
|
// 5.1.4.1 class template linear_congruential [tr.rand.eng.lcong]
|
||||||
// 5.1.1 Table 16 line 3 template ctor(gen)
|
// 5.1.1 Table 16 line 3 template ctor(gen)
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <tr1/random>
|
#include <tr1/random>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
// 5.1.4.2 class template mersenne_twister [tr.rand.eng.mers]
|
// 5.1.4.2 class template mersenne_twister [tr.rand.eng.mers]
|
||||||
// 5.1.1 Table 16 line 3 Gen ctor
|
// 5.1.1 Table 16 line 3 Gen ctor
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <tr1/random>
|
#include <tr1/random>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
// 5.1.4.3 class template subtract_with_carry [tr.rand.eng.sub]
|
// 5.1.4.3 class template subtract_with_carry [tr.rand.eng.sub]
|
||||||
// 5.1.1 Table 16 line 3 Gen ctor
|
// 5.1.1 Table 16 line 3 Gen ctor
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <tr1/random>
|
#include <tr1/random>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
// 5.1.4.4 class template subtract_with_carry_01 [tr.rand.eng.sub1]
|
// 5.1.4.4 class template subtract_with_carry_01 [tr.rand.eng.sub1]
|
||||||
// 5.1.1 Table 16 line 3 Gen ctor
|
// 5.1.1 Table 16 line 3 Gen ctor
|
||||||
|
|
||||||
|
// { dg-require-time "" }
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <tr1/random>
|
#include <tr1/random>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
Loading…
Reference in New Issue