From 0c8e2c987d59c81655c139b7d2d822cc95871140 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 11 Jan 2021 13:58:06 -0700 Subject: [PATCH] std CityHash: disable memory-expensive tests for now --- lib/std/hash/cityhash.zig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/std/hash/cityhash.zig b/lib/std/hash/cityhash.zig index 0fddad76b2..c2e7db4d49 100644 --- a/lib/std/hash/cityhash.zig +++ b/lib/std/hash/cityhash.zig @@ -366,7 +366,7 @@ fn SMHasherTest(comptime hash_fn: anytype) u32 { // comptime can't really do reinterpret casting yet, // so we need to write the bytes manually. - for (hashes_bytes[i*@sizeOf(HashResult)..][0..@sizeOf(HashResult)]) |*byte| { + for (hashes_bytes[i * @sizeOf(HashResult) ..][0..@sizeOf(HashResult)]) |*byte| { byte.* = @truncate(u8, h); h = h >> 8; } @@ -389,8 +389,10 @@ test "cityhash32" { } }; Test.doTest(); - @setEvalBranchQuota(50000); - comptime Test.doTest(); + // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test + // case once we ship stage2. + //@setEvalBranchQuota(50000); + //comptime Test.doTest(); } test "cityhash64" { @@ -402,6 +404,8 @@ test "cityhash64" { } }; Test.doTest(); - @setEvalBranchQuota(50000); - comptime Test.doTest(); + // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test + // case once we ship stage2. + //@setEvalBranchQuota(50000); + //comptime Test.doTest(); }