Fix S_IRUSR/S_IWUSR constants on mac. Closes #726
This commit is contained in:
@@ -335,8 +335,6 @@ fn dump_output(config: config, testfile: str, out: str, err: str) {
|
||||
maybe_dump_to_stdout(config, out, err);
|
||||
}
|
||||
|
||||
#[cfg(target_os = "win32")]
|
||||
#[cfg(target_os = "linux")]
|
||||
fn dump_output_file(config: config, testfile: str, out: str, extension: str) {
|
||||
let outfile = make_out_name(config, testfile, extension);
|
||||
let writer = result::get(
|
||||
@@ -344,11 +342,6 @@ fn dump_output_file(config: config, testfile: str, out: str, extension: str) {
|
||||
writer.write_str(out);
|
||||
}
|
||||
|
||||
// FIXME (726): Can't use file_writer on mac
|
||||
#[cfg(target_os = "macos")]
|
||||
fn dump_output_file(config: config, testfile: str, out: str, extension: str) {
|
||||
}
|
||||
|
||||
fn make_out_name(config: config, testfile: str, extension: str) -> str {
|
||||
output_base_name(config, testfile) + "." + extension
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user