authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-11 13:58:06-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-11 13:58:06-07:00
log0c8e2c987d59c81655c139b7d2d822cc95871140
treeb00e28d6f15de11b468bea413562b8d45c24f46e
parent21213127ec64f23deaaa65b14447b36dd1e388d5

std CityHash: disable memory-expensive tests for now


1 files changed, 9 insertions(+), 5 deletions(-)

lib/std/hash/cityhash.zig+9-5
...@@ -366,7 +366,7 @@ fn SMHasherTest(comptime hash_fn: anytype) u32 {...@@ -366,7 +366,7 @@ fn SMHasherTest(comptime hash_fn: anytype) u32 {
366366
367 // comptime can't really do reinterpret casting yet,367 // comptime can't really do reinterpret casting yet,
368 // so we need to write the bytes manually.368 // so we need to write the bytes manually.
369 for (hashes_bytes[i*@sizeOf(HashResult)..][0..@sizeOf(HashResult)]) |*byte| {369 for (hashes_bytes[i * @sizeOf(HashResult) ..][0..@sizeOf(HashResult)]) |*byte| {
370 byte.* = @truncate(u8, h);370 byte.* = @truncate(u8, h);
371 h = h >> 8;371 h = h >> 8;
372 }372 }
...@@ -389,8 +389,10 @@ test "cityhash32" {...@@ -389,8 +389,10 @@ test "cityhash32" {
389 }389 }
390 };390 };
391 Test.doTest();391 Test.doTest();
392 @setEvalBranchQuota(50000);392 // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test
393 comptime Test.doTest();393 // case once we ship stage2.
394 //@setEvalBranchQuota(50000);
395 //comptime Test.doTest();
394}396}
395397
396test "cityhash64" {398test "cityhash64" {
...@@ -402,6 +404,8 @@ test "cityhash64" {...@@ -402,6 +404,8 @@ test "cityhash64" {
402 }404 }
403 };405 };
404 Test.doTest();406 Test.doTest();
405 @setEvalBranchQuota(50000);407 // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test
406 comptime Test.doTest();408 // case once we ship stage2.
409 //@setEvalBranchQuota(50000);
410 //comptime Test.doTest();
407}411}