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