Blame SOURCES/0009-Fix-22_locale-locale-cons-unicode.cc-when-run-under-.patch

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