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

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