From: Jonathan Wakely Date: Tue, 2 Aug 2016 19:34:36 +0000 (+0100) Subject: Fix std::wstring allocator tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=589a30d1a4f66b49c04497290d8c19f88a815f8c;p=gcc.git Fix std::wstring allocator tests * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: Remove reundant check for _GLIBCXX_USE_WCHAR_T and fix char type. * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: Likewise. From-SVN: r238996 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3f80c017925..0b2352e8c25 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,20 @@ 2016-08-02 Jonathan Wakely + * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: + Remove reundant check for _GLIBCXX_USE_WCHAR_T and fix char type. + * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc: + Likewise. + * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: + Likewise. + * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: + Likewise. + * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc: + Likewise. + * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: + Likewise. + * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: + Likewise. + * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Improve comments. diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc index 2ed238a3361..110f4d9d92d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc @@ -21,9 +21,9 @@ #include #include -#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) -using C = char; -const C c = 'a'; +#if _GLIBCXX_USE_CXX11_ABI +using C = wchar_t; +const C c = L'a'; using traits = std::char_traits; using __gnu_test::propagating_allocator; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc index fefa77f85db..3ac15bbf821 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc @@ -21,9 +21,9 @@ #include #include -#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) -using C = char; -const C c = 'a'; +#if _GLIBCXX_USE_CXX11_ABI +using C = wchar_t; +const C c = L'a'; using traits = std::char_traits; using __gnu_test::propagating_allocator; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc index 3306438f81d..1563abbb2dd 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc @@ -22,7 +22,7 @@ #include #include -#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) +#if _GLIBCXX_USE_CXX11_ABI using C = wchar_t; const C c = L'a'; using traits = std::char_traits; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move.cc index 84504bc40f9..1cee2ac3340 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move.cc @@ -21,9 +21,9 @@ #include #include -#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) -using C = char; -const C c = 'a'; +#if _GLIBCXX_USE_CXX11_ABI +using C = wchar_t; +const C c = L'a'; using traits = std::char_traits; using __gnu_test::uneq_allocator; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc index d1efc0bf9a3..8c94d798604 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc @@ -21,9 +21,9 @@ #include #include -#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) -using C = char; -const C c = 'a'; +#if _GLIBCXX_USE_CXX11_ABI +using C = wchar_t; +const C c = L'a'; using traits = std::char_traits; using __gnu_test::propagating_allocator; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc index 0ed6940db99..6c462a6bd69 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc @@ -21,9 +21,9 @@ #include #include -#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) -using C = char; -const C c = 'a'; +#if _GLIBCXX_USE_CXX11_ABI +using C = wchar_t; +const C c = L'a'; using traits = std::char_traits; using __gnu_test::propagating_allocator; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc index dd496e93165..667d47505da 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc @@ -21,9 +21,9 @@ #include #include -#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) -using C = char; -const C c = 'a'; +#if _GLIBCXX_USE_CXX11_ABI +using C = wchar_t; +const C c = L'a'; using traits = std::char_traits; using __gnu_test::propagating_allocator;