From: Paolo Carlini Date: Mon, 9 Jan 2006 11:37:17 +0000 (+0000) Subject: re PR libstdc++/25658 (testsuite failure: 23_containers/deque/cons/assign/1.cc) X-Git-Tag: releases/gcc-4.2.0~4966 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7cd797c5b0c050153fc338e62d23ee51268b915;p=thirdparty%2Fgcc.git re PR libstdc++/25658 (testsuite failure: 23_containers/deque/cons/assign/1.cc) 2006-01-09 Paolo Carlini PR libstdc++/25658 * testsuite/23_containers/deque/cons/assign/1.cc: Divide sizes by 10. From-SVN: r109499 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5e5e1b86ffd6..34a6f9b73c3c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2006-01-09 Paolo Carlini + + PR libstdc++/25658 + * testsuite/23_containers/deque/cons/assign/1.cc: Divide + sizes by 10. + 2006-01-08 Paolo Carlini PR libstdc++/22102 (insert as close to hint as possible) diff --git a/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc b/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc index 6b8a92c15432..df6c846064d1 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc @@ -1,6 +1,6 @@ // 2005-12-12 Paolo Carlini // -// Copyright (C) 2005 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -28,15 +28,15 @@ void test01() bool test __attribute__((unused)) = true; using namespace std; - int data3[10000]; - fill(data3, data3 + 10000, 3); + int data3[1000]; + fill(data3, data3 + 1000, 3); - int data5[10000]; - fill(data5, data5 + 10000, 5); + int data5[1000]; + fill(data5, data5 + 1000, 5); - for (deque::size_type i = 0; i < 10000; ++i) + for (deque::size_type i = 0; i < 1000; ++i) { - deque d(rand() % 5000, 1); + deque d(rand() % 500, 1); d.assign(i, i % 2 ? 3 : 5); VERIFY( d.size() == i );