Skip to content

Commit

Permalink
tests/run-make: fix reset-codegen-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Jun 11, 2024
1 parent bb2be06 commit c0ed03b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/run-make/reset-codegen-1/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,20 @@ fn main() {
("link-output", Some("link")),
("obj-output", Some("obj")),
("dep-output", Some("dep-info")),
("multi-output", Some("asm,obj")),
];
for (output_file, emit) in flags {
fs::remove_file(output_file).unwrap_or_default();
compile(output_file, emit);
fs::remove_file(output_file);
eprintln!("{output_file}");
fs::remove_file(output_file).unwrap();
}

{
// multi-output has two output artifacts with extensions.
fs::remove_file("multi-output.s").unwrap_or_default();
fs::remove_file("multi-output.o").unwrap_or_default();
compile("multi-output", Some("asm,obj"));
fs::remove_file("multi-output.s").unwrap();
fs::remove_file("multi-output.o").unwrap();
}
}

0 comments on commit c0ed03b

Please sign in to comment.