mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Skip the ShortStringCollision test on WASM.
We see collisions due to no ASLR and 32-bit size_t. PiperOrigin-RevId: 820276001 Change-Id: I6f3e0d8ade2152fed9759285b7f92a133c6bff14
This commit is contained in:
committed by
Copybara-Service
parent
ef1ae8e310
commit
6725fe31f5
@@ -86,9 +86,6 @@ cc_test(
|
||||
],
|
||||
copts = ABSL_TEST_COPTS,
|
||||
linkopts = ABSL_DEFAULT_LINKOPTS,
|
||||
tags = [
|
||||
"no_test_wasm", # b/452379654
|
||||
],
|
||||
deps = [
|
||||
":hash",
|
||||
":hash_testing",
|
||||
|
||||
@@ -1242,6 +1242,9 @@ TEST(HashOf, DoubleSignCollision) {
|
||||
|
||||
// Test for collisions in short strings if PrecombineLengthMix is low quality.
|
||||
TEST(PrecombineLengthMix, ShortStringCollision) {
|
||||
#if defined(__wasm__)
|
||||
GTEST_SKIP() << "Fails flakily on wasm due to no ASLR and 32-bit size_t.";
|
||||
#endif
|
||||
std::string s1 = "00";
|
||||
std::string s2 = "000";
|
||||
constexpr char kMinChar = 0;
|
||||
|
||||
Reference in New Issue
Block a user