|
|
56505a |
From 87e2a4f28b444f376ebe15f38e2743eb952ff355 Mon Sep 17 00:00:00 2001
|
|
|
56505a |
From: David Malcolm <dmalcolm@redhat.com>
|
|
|
56505a |
Date: Wed, 1 Sep 2021 11:02:53 -0400
|
|
|
56505a |
Subject: [PATCH 09/17] Fix 22_locale/locale/cons/unicode.cc when run under DTS
|
|
|
56505a |
|
|
|
56505a |
Various has_facet calls return false in DTS, as DTS is using the
|
|
|
56505a |
std::locale from the system libstdc++.
|
|
|
56505a |
|
|
|
56505a |
Hence this patch tweaks tests to remove the VERIFY from the result of
|
|
|
56505a |
the call, so that they do not fail if run against an older
|
|
|
56505a |
std::locale.
|
|
|
56505a |
|
|
|
56505a |
These VERIFY tests were added upstream 2015-01-16 in
|
|
|
56505a |
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=bb93f35da1612940266f5d159b6cc5a3e54fca14
|
|
|
56505a |
---
|
|
|
56505a |
libstdc++-v3/testsuite/22_locale/locale/cons/unicode.cc | 4 ++--
|
|
|
56505a |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
56505a |
|
|
|
56505a |
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/unicode.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/unicode.cc
|
|
|
56505a |
index 15c621099..328145094 100644
|
|
|
56505a |
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/unicode.cc
|
|
|
56505a |
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/unicode.cc
|
|
|
56505a |
@@ -70,8 +70,8 @@ void test01()
|
|
|
56505a |
VERIFY( has_facet<w_codecvt>(loc13) );
|
|
|
56505a |
#endif
|
|
|
56505a |
#ifdef _GLIBCXX_USE_C99_STDINT_TR1
|
|
|
56505a |
- VERIFY( has_facet<u16_codecvt>(loc13) );
|
|
|
56505a |
- VERIFY( has_facet<u32_codecvt>(loc13) );
|
|
|
56505a |
+ (void)( has_facet<u16_codecvt>(loc13) );
|
|
|
56505a |
+ (void)( has_facet<u32_codecvt>(loc13) );
|
|
|
56505a |
#ifdef _GLIBCXX_USE_CHAR8_T
|
|
|
56505a |
VERIFY( has_facet<u16u8_codecvt>(loc13) );
|
|
|
56505a |
VERIFY( has_facet<u32u8_codecvt>(loc13) );
|
|
|
56505a |
--
|
|
|
56505a |
2.31.1
|
|
|
56505a |
|