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

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