| ... | @@ -366,7 +366,7 @@ fn SMHasherTest(comptime hash_fn: anytype) u32 { | ... | @@ -366,7 +366,7 @@ fn SMHasherTest(comptime hash_fn: anytype) u32 { |
| 366 | | 366 | |
| 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 | } |
| 395 | | 397 | |
| 396 | test "cityhash64" { | 398 | test "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 | } |