Blame SOURCES/0017-Conditionalize-test-for-PR-libstdc-71181-on-__LIBSTD.patch

a46658
From 102adc148612b50a4e3f12a88871ddc47bfb469e Mon Sep 17 00:00:00 2001
a46658
From: David Malcolm <dmalcolm@redhat.com>
a46658
Date: Thu, 2 Sep 2021 17:17:50 -0400
a46658
Subject: [PATCH 17/17] Conditionalize test for PR libstdc++/71181 on
a46658
 __LIBSTDCXX_SO_VERSION >= 7
a46658
a46658
This test was added upstream 2016-06-20 as part of:
a46658
  re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough)
a46658
    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=29dbb034cb3199167a9d0aaed040733c72326eed
a46658
a46658
but fails when run in DTS against a system libstdc++.so from an older GCC.
a46658
---
a46658
 .../testsuite/23_containers/unordered_set/hash_policy/71181.cc | 3 +++
a46658
 1 file changed, 3 insertions(+)
a46658
a46658
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/hash_policy/71181.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/hash_policy/71181.cc
a46658
index 324d735b8..b2dcd0137 100644
a46658
--- a/libstdc++-v3/testsuite/23_containers/unordered_set/hash_policy/71181.cc
a46658
+++ b/libstdc++-v3/testsuite/23_containers/unordered_set/hash_policy/71181.cc
a46658
@@ -39,7 +39,10 @@ template<typename _USet>
a46658
 
a46658
 	us.insert(nb_insert);
a46658
 
a46658
+	// Fixed upstream in GCC 7
a46658
+#if __LIBSTDCXX_SO_VERSION >= 7
a46658
 	VERIFY( us.bucket_count() == bkts );
a46658
+#endif
a46658
       }
a46658
   }
a46658
 
a46658
-- 
a46658
2.31.1
a46658