std CityHash: disable memory-expensive tests for now

This commit is contained in:
Andrew Kelley 2021-01-11 13:58:06 -07:00
parent 21213127ec
commit 0c8e2c987d

View File

@ -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();
}