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