diff options
| author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-14 20:57:58 +0000 |
|---|---|---|
| committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-14 20:57:58 +0000 |
| commit | ed496ffeca01f9696c853915d93938b3fa3141a0 (patch) | |
| tree | 1e2a5d01ba299674e33b95a7d8d2348547bf0574 /libstdc++-v3/testsuite/27_io/basic_stringbuf | |
| parent | 5c96a1f3f679245ffea26760b3150e1fa22ff60b (diff) | |
| download | ppe42-gcc-ed496ffeca01f9696c853915d93938b3fa3141a0.tar.gz ppe42-gcc-ed496ffeca01f9696c853915d93938b3fa3141a0.zip | |
2013-01-14 Steve Ellcey <sellcey@mips.com>
* testsuite/libstdc++-v3/testsuite/23_containers/vector/profile/vector.cc:
Shrink memory usage under simulator.
* testsuite/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc: Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/28277-1.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/28277-2.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc:
Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_stringbuf')
| -rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc | 10 | ||||
| -rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc index 0d3ea89e8c6..2b35dbdea18 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc @@ -1,6 +1,6 @@ // 2004-07-07 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2009, 2013 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 @@ -19,6 +19,12 @@ // 27.7.1.3 basic_stringbuf overridden virtual functions. +// { dg-options "-DMAX_SIZE=100000" { target simulator } } + +#ifndef MAX_SIZE +#define MAX_SIZE 10000000 +#endif + #include <sstream> #include <cstdlib> #include <testsuite_hooks.h> @@ -51,6 +57,6 @@ test01(unsigned iter) int main() { - test01(10000000); + test01(MAX_SIZE); return 0; } diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc index c6c966db7d1..4a82d8f5fc7 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc @@ -1,6 +1,6 @@ // 2004-10-06 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2009, 2013 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 @@ -19,6 +19,12 @@ // 27.8.1.4 Overridden virtual functions +// { dg-options "-DMAX_SIZE=4096" { target simulator } } + +#ifndef MAX_SIZE +#define MAX_SIZE (1 << 18) +#endif + #include <sstream> #include <testsuite_hooks.h> @@ -27,7 +33,7 @@ void test01() using namespace std; bool test __attribute__((unused)) = true; - const unsigned max_size = 1 << 18; + const unsigned max_size = MAX_SIZE; static wchar_t ref[max_size]; wmemset(ref, L'\0', max_size); |

