| ... | @@ -20,15 +20,6 @@ const expectEqualStrings = std.testing.expectEqualStrings; | ... | @@ -20,15 +20,6 @@ const expectEqualStrings = std.testing.expectEqualStrings; |
| 20 | const expectError = std.testing.expectError; | 20 | const expectError = std.testing.expectError; |
| 21 | const tmpDir = std.testing.tmpDir; | 21 | const tmpDir = std.testing.tmpDir; |
| 22 | | 22 | |
| 23 | // https://github.com/ziglang/zig/issues/20288 | | |
| 24 | test "WTF-8 to WTF-16 conversion buffer overflows" { | | |
| 25 | if (native_os != .windows) return error.SkipZigTest; | | |
| 26 | | | |
| 27 | const input_wtf8 = "\u{10FFFF}" ** 16385; | | |
| 28 | try expectError(error.NameTooLong, posix.chdir(input_wtf8)); | | |
| 29 | try expectError(error.NameTooLong, posix.chdirZ(input_wtf8)); | | |
| 30 | } | | |
| 31 | | | |
| 32 | test "check WASI CWD" { | 23 | test "check WASI CWD" { |
| 33 | if (native_os == .wasi) { | 24 | if (native_os == .wasi) { |
| 34 | if (std.options.wasiCwd() != 3) { | 25 | if (std.options.wasiCwd() != 3) { |