Fix std::wstring capacity test for short wchar_t

* testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
	real minimum capacity.
	* testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc:
	Likewise.

From-SVN: r230378
This commit is contained in:
Jonathan Wakely 2015-11-14 17:24:42 +00:00 committed by Jonathan Wakely
parent bfc6afd929
commit 230b4edeee
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2015-11-14 Jonathan Wakely <jwakely@redhat.com>
* testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
real minimum capacity.
* testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc:
Likewise.
2015-11-13 David Edelsohn <dje.gcc@gmail.com>
* testsuite/experimental/random/randint.cc: Add dg-add-options tls.

View File

@ -38,7 +38,7 @@ void test01()
#if _GLIBCXX_USE_CXX11_ABI
// Can't shrink below small string size.
const size_type minsize = 2 << 3;
const size_type minsize = string().capacity() + 1;
#else
// Exact shrink-to-size and shrink-to-fit
const size_type minsize = 2 << 0;

View File

@ -38,7 +38,7 @@ void test01()
#if _GLIBCXX_USE_CXX11_ABI
// Can't shrink below small string size.
const size_type minsize = 2 << 1;
const size_type minsize = wstring().capacity() + 1;
#else
// Exact shrink-to-size and shrink-to-fit
const size_type minsize = 2 << 0;