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

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