| author | |
| committer | |
| log | ae38fc6a50dfcece964d7d19d9e35ac5dc583daa |
| tree | 656410cb354dcbb40458fe64aff82e2c46675860 |
| parent | 530228d9531e8d1dcf7e8ed88e68403e65bcf6bb |
| signature |
2 files changed, 3 insertions(+), 0 deletions(-)
lib/std/os/windows.zig+1| ... | ... | @@ -1980,6 +1980,7 @@ pub fn CreateProcessW( |
| 1980 | 1980 | switch (GetLastError()) { |
| 1981 | 1981 | .FILE_NOT_FOUND => return error.FileNotFound, |
| 1982 | 1982 | .PATH_NOT_FOUND => return error.FileNotFound, |
| 1983 | .DIRECTORY => return error.FileNotFound, | |
| 1983 | 1984 | .ACCESS_DENIED => return error.AccessDenied, |
| 1984 | 1985 | .INVALID_PARAMETER => unreachable, |
| 1985 | 1986 | .INVALID_NAME => return error.InvalidName, |
test/standalone/windows_spawn/main.zig+2| ... | ... | @@ -51,6 +51,8 @@ pub fn main() anyerror!void { |
| 51 | 51 | try testExec(allocator, "HeLLo.exe", "hello from exe\n"); |
| 52 | 52 | // without extension should find the .exe (case insensitive) |
| 53 | 53 | try testExec(allocator, "heLLo", "hello from exe\n"); |
| 54 | // with invalid cwd | |
| 55 | try std.testing.expectError(error.FileNotFound, testExecWithCwd(allocator, "hello.exe", "missing_dir", "")); | |
| 54 | 56 | |
| 55 | 57 | // now add a .bat |
| 56 | 58 | try tmp.dir.writeFile(.{ .sub_path = "hello.bat", .data = "@echo hello from bat" }); |