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 {
366366
367367 // comptime can't really do reinterpret casting yet,
368368 // 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| {
370370 byte.* = @truncate(u8, h);
371371 h = h >> 8;
372372 }
......@@ -389,8 +389,10 @@ test "cityhash32" {
389389 }
390390 };
391391 Test.doTest();
392 @setEvalBranchQuota(50000);
393 comptime Test.doTest();
392 // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test
393 // case once we ship stage2.
394 //@setEvalBranchQuota(50000);
395 //comptime Test.doTest();
394396}
395397
396398test "cityhash64" {
......@@ -402,6 +404,8 @@ test "cityhash64" {
402404 }
403405 };
404406 Test.doTest();
405 @setEvalBranchQuota(50000);
406 comptime Test.doTest();
407 // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test
408 // case once we ship stage2.
409 //@setEvalBranchQuota(50000);
410 //comptime Test.doTest();
407411}