| ... | ... | @@ -145,7 +145,9 @@ fn testMissingOutputPath(zig_exe: []const u8, dir_path: []const u8) !void { |
| 145 | 145 | const output_arg = try std.fmt.allocPrint(a, "-femit-bin={s}", .{output_path}); |
| 146 | 146 | const source_path = try fs.path.join(a, &[_][]const u8{ "src", "main.zig" }); |
| 147 | 147 | const result = try exec(dir_path, false, &[_][]const u8{ zig_exe, "build-exe", source_path, output_arg }); |
| 148 | | testing.expect(std.mem.eql(u8, result.stderr, "error: unable to open output directory 'does/not/exist': FileNotFound\n")); |
| 148 | const s = std.fs.path.sep_str; |
| 149 | const expected: []const u8 = "error: unable to open output directory 'does" ++ s ++ "not" ++ s ++ "exist': FileNotFound\n"; |
| 150 | testing.expectEqualStrings(expected, result.stderr); |
| 149 | 151 | } |
| 150 | 152 | |
| 151 | 153 | fn testZigFmt(zig_exe: []const u8, dir_path: []const u8) !void { |