mirror of
https://github.com/ziglang/zig.git
synced 2024-11-17 01:23:54 +00:00
std CityHash: disable memory-expensive tests for now
This commit is contained in:
parent
21213127ec
commit
0c8e2c987d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user