3.cc: Shrink memory usage under simulator.
2012-12-14 Steve Ellcey <sellcey@mips.com> * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Shrink memory usage under simulator. * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: Ditto. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc: Ditto. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc: Ditto. From-SVN: r194510
This commit is contained in:
parent
8b299be64a
commit
2993114da5
|
@ -1,3 +1,13 @@
|
|||
2012-12-14 Steve Ellcey <sellcey@mips.com>
|
||||
|
||||
* testsuite/21_strings/basic_string/append/wchar_t/3.cc: Shrink
|
||||
memory usage under simulator.
|
||||
* testsuite/21_strings/basic_string/cons/wchar_t/6.cc: Ditto.
|
||||
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
|
||||
Ditto.
|
||||
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
|
||||
Ditto.
|
||||
|
||||
2012-12-13 Steve Ellcey <sellcey@mips.com>
|
||||
|
||||
* testsuite/21_strings/basic_string/capacity/char/18654.cc: Shrink
|
||||
|
|
|
@ -19,6 +19,12 @@
|
|||
|
||||
// 21.3.5 string modifiers
|
||||
|
||||
// { dg-options "-DITERATIONS=14" { target simulator } }
|
||||
|
||||
#ifndef ITERATIONS
|
||||
#define ITERATIONS 18
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
|
@ -37,7 +43,7 @@ test03()
|
|||
{
|
||||
wstring one(source);
|
||||
wstring two(source);
|
||||
for (unsigned j = 0; j < 18; ++j)
|
||||
for (unsigned j = 0; j < ITERATIONS; ++j)
|
||||
{
|
||||
VERIFY( one == two );
|
||||
one.append(one);
|
||||
|
|
|
@ -19,6 +19,12 @@
|
|||
|
||||
// 21.3.1 basic_string constructors.
|
||||
|
||||
// { dg-options "-DITERATIONS=11" { target simulator } }
|
||||
|
||||
#ifndef ITERATIONS
|
||||
#define ITERATIONS 13
|
||||
#endif
|
||||
|
||||
#include <iterator>
|
||||
#include <sstream>
|
||||
#include <cstdlib>
|
||||
|
@ -50,6 +56,6 @@ void test01(int iter)
|
|||
|
||||
int main()
|
||||
{
|
||||
test01(13);
|
||||
test01(ITERATIONS);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -17,6 +17,12 @@
|
|||
|
||||
// 21.3.7.9 inserters and extractors
|
||||
|
||||
// { dg-options "-DMAX_SIZE=505" { target simulator } }
|
||||
|
||||
#ifndef MAX_SIZE
|
||||
#define MAX_SIZE 777
|
||||
#endif
|
||||
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
@ -64,7 +70,7 @@ void test01()
|
|||
|
||||
const wchar_t delim = L'|';
|
||||
const unsigned nchunks = 10;
|
||||
const wstring data = prepare(777, nchunks, delim);
|
||||
const wstring data = prepare(MAX_SIZE, nchunks, delim);
|
||||
|
||||
wofstream ofstrm;
|
||||
ofstrm.open(filename);
|
||||
|
|
|
@ -17,6 +17,12 @@
|
|||
|
||||
// 21.3.7.9 inserters and extractors
|
||||
|
||||
// { dg-options "-DMAX_SIZE=466" { target simulator } }
|
||||
|
||||
#ifndef MAX_SIZE
|
||||
#define MAX_SIZE 666
|
||||
#endif
|
||||
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
@ -63,7 +69,7 @@ void test01()
|
|||
const char filename[] = "inserters_extractors-3.txt";
|
||||
|
||||
const unsigned nchunks = 10;
|
||||
const wstring data = prepare(666, nchunks);
|
||||
const wstring data = prepare(MAX_SIZE, nchunks);
|
||||
|
||||
wofstream ofstrm;
|
||||
ofstrm.open(filename);
|
||||
|
|
Loading…
Reference in New Issue