aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-01-11 13:58:06 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-01-11 13:58:06 -0700
commit0c8e2c987d59c81655c139b7d2d822cc95871140 (patch)
treeb00e28d6f15de11b468bea413562b8d45c24f46e /lib/std
parent21213127ec64f23deaaa65b14447b36dd1e388d5 (diff)
downloadzig-0c8e2c987d59c81655c139b7d2d822cc95871140.tar.gz
zig-0c8e2c987d59c81655c139b7d2d822cc95871140.zip
std CityHash: disable memory-expensive tests for now
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/hash/cityhash.zig14
1 files 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();
}