Commit 2993114d by Steve Ellcey Committed by Steve Ellcey

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
parent 8b299be6
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> 2012-12-13 Steve Ellcey <sellcey@mips.com>
* testsuite/21_strings/basic_string/capacity/char/18654.cc: Shrink * testsuite/21_strings/basic_string/capacity/char/18654.cc: Shrink
......
...@@ -19,6 +19,12 @@ ...@@ -19,6 +19,12 @@
// 21.3.5 string modifiers // 21.3.5 string modifiers
// { dg-options "-DITERATIONS=14" { target simulator } }
#ifndef ITERATIONS
#define ITERATIONS 18
#endif
#include <string> #include <string>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
...@@ -37,7 +43,7 @@ test03() ...@@ -37,7 +43,7 @@ test03()
{ {
wstring one(source); wstring one(source);
wstring two(source); wstring two(source);
for (unsigned j = 0; j < 18; ++j) for (unsigned j = 0; j < ITERATIONS; ++j)
{ {
VERIFY( one == two ); VERIFY( one == two );
one.append(one); one.append(one);
......
...@@ -19,6 +19,12 @@ ...@@ -19,6 +19,12 @@
// 21.3.1 basic_string constructors. // 21.3.1 basic_string constructors.
// { dg-options "-DITERATIONS=11" { target simulator } }
#ifndef ITERATIONS
#define ITERATIONS 13
#endif
#include <iterator> #include <iterator>
#include <sstream> #include <sstream>
#include <cstdlib> #include <cstdlib>
...@@ -50,6 +56,6 @@ void test01(int iter) ...@@ -50,6 +56,6 @@ void test01(int iter)
int main() int main()
{ {
test01(13); test01(ITERATIONS);
return 0; return 0;
} }
...@@ -17,6 +17,12 @@ ...@@ -17,6 +17,12 @@
// 21.3.7.9 inserters and extractors // 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 <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
...@@ -64,7 +70,7 @@ void test01() ...@@ -64,7 +70,7 @@ void test01()
const wchar_t delim = L'|'; const wchar_t delim = L'|';
const unsigned nchunks = 10; const unsigned nchunks = 10;
const wstring data = prepare(777, nchunks, delim); const wstring data = prepare(MAX_SIZE, nchunks, delim);
wofstream ofstrm; wofstream ofstrm;
ofstrm.open(filename); ofstrm.open(filename);
......
...@@ -17,6 +17,12 @@ ...@@ -17,6 +17,12 @@
// 21.3.7.9 inserters and extractors // 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 <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
...@@ -63,7 +69,7 @@ void test01() ...@@ -63,7 +69,7 @@ void test01()
const char filename[] = "inserters_extractors-3.txt"; const char filename[] = "inserters_extractors-3.txt";
const unsigned nchunks = 10; const unsigned nchunks = 10;
const wstring data = prepare(666, nchunks); const wstring data = prepare(MAX_SIZE, nchunks);
wofstream ofstrm; wofstream ofstrm;
ofstrm.open(filename); ofstrm.open(filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment