Skip to content

Commit

Permalink
Truncate standalone test files instead of removing
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jan 6, 2024
1 parent 02db74c commit 8a8f2f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/tests/standalone/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ fn write_no_inner_attr(output: &str, filter: &[&str]) {
}

fn riddle(output: &str, filter: &[&str], config: &[&str]) {
_ = std::fs::remove_file(output);
_ = std::fs::File::options()
.truncate(true)
.write(true)
.open(output);

let mut command = std::process::Command::new("cargo");

Expand Down

0 comments on commit 8a8f2f3

Please sign in to comment.