TEST(HashValueTest, StdBitset) {
EXPECT_TRUE((is_hashable<std::bitset<257>>::value));
+ // The following assertions fail on s390x (https://bugs.debian.org/977638).
+#ifndef __s390x__
EXPECT_TRUE(absl::VerifyTypeImplementsAbslHashCorrectly(
{std::bitset<2>("00"), std::bitset<2>("01"), std::bitset<2>("10"),
std::bitset<2>("11")}));
std::bitset<kNumBits>(bit_strings[3].c_str()),
std::bitset<kNumBits>(bit_strings[4].c_str()),
std::bitset<kNumBits>(bit_strings[5].c_str())}));
+#endif
} // namespace
template <typename T>
}
REGISTER_TYPED_TEST_CASE_P(HashValueSequenceTest, BasicUsage);
+// std::vector<bool> tests fail on s390x, so exclude them. See
+// https://bugs.debian.org/977638.
using IntSequenceTypes =
testing::Types<std::deque<int>, std::forward_list<int>, std::list<int>,
- std::vector<int>, std::vector<bool>, std::set<int>,
- std::multiset<int>>;
+ std::vector<int>,
+#ifndef __s390x__
+ std::vector<bool>,
+#endif
+ std::set<int>, std::multiset<int>>;
INSTANTIATE_TYPED_TEST_CASE_P(My, HashValueSequenceTest, IntSequenceTypes);
// Private type that only supports AbslHashValue to make sure our chosen hash