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:
Evan Brown
2025-10-16 09:47:07 -07:00
committed by Copybara-Service
parent ef1ae8e310
commit 6725fe31f5
2 changed files with 3 additions and 3 deletions

View File

@@ -86,9 +86,6 @@ cc_test(
],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = [
"no_test_wasm", # b/452379654
],
deps = [
":hash",
":hash_testing",

View File

@@ -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;