diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-10-22 08:06:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-22 08:06:47 -0400 |
| commit | 0c99ba1eab63865592bb084feb271cd4e4b0357e (patch) | |
| tree | 7004c99fc0619ff94317cc176900d1d3a3c88335 /lib/std/crypto/bcrypt.zig | |
| parent | 5f92b070bf284f1493b1b5d433dd3adde2f46727 (diff) | |
| parent | 920e9668ddb16fbb98cd08b43ed2364062a4b102 (diff) | |
| download | zig-0c99ba1eab63865592bb084feb271cd4e4b0357e.tar.gz zig-0c99ba1eab63865592bb084feb271cd4e4b0357e.zip | |
Merge pull request #17637 from jacobly0/x86_64-test-std
x86_64: start to enable `test-std` and `test-compiler-rt` testing
Diffstat (limited to 'lib/std/crypto/bcrypt.zig')
| -rw-r--r-- | lib/std/crypto/bcrypt.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/std/crypto/bcrypt.zig b/lib/std/crypto/bcrypt.zig index 87d2eef79a..ce3a5aec79 100644 --- a/lib/std/crypto/bcrypt.zig +++ b/lib/std/crypto/bcrypt.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const builtin = @import("builtin"); const base64 = std.base64; const crypto = std.crypto; const debug = std.debug; @@ -753,6 +754,8 @@ pub fn strVerify( } test "bcrypt codec" { + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + var salt: [salt_length]u8 = undefined; crypto.random.bytes(&salt); var salt_str: [salt_str_length]u8 = undefined; @@ -763,6 +766,8 @@ test "bcrypt codec" { } test "bcrypt crypt format" { + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + var hash_options = HashOptions{ .params = .{ .rounds_log = 5 }, .encoding = .crypt, @@ -803,6 +808,8 @@ test "bcrypt crypt format" { } test "bcrypt phc format" { + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + var hash_options = HashOptions{ .params = .{ .rounds_log = 5 }, .encoding = .phc, |
