re PR libstdc++/25658 (testsuite failure: 23_containers/deque/cons/assign/1.cc)

2006-01-09  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/25658
	* testsuite/23_containers/deque/cons/assign/1.cc: Divide
	sizes by 10.

From-SVN: r109499
This commit is contained in:
Paolo Carlini 2006-01-09 11:37:17 +00:00 committed by Paolo Carlini
parent a79cb46cf4
commit f7cd797c5b
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2006-01-09 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/25658
* testsuite/23_containers/deque/cons/assign/1.cc: Divide
sizes by 10.
2006-01-08 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/22102 (insert as close to hint as possible)

View File

@ -1,6 +1,6 @@
// 2005-12-12 Paolo Carlini <pcarlini@suse.de>
//
// 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<int>::size_type i = 0; i < 10000; ++i)
for (deque<int>::size_type i = 0; i < 1000; ++i)
{
deque<int> d(rand() % 5000, 1);
deque<int> d(rand() % 500, 1);
d.assign(i, i % 2 ? 3 : 5);
VERIFY( d.size() == i );