Skip to content

Commit 8d182e3

Browse files
committed
tests/run-make: fix reset-codegen-1
1 parent 7548a8b commit 8d182e3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/run-make/reset-codegen-1/rmake.rs

+11-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,20 @@ fn main() {
2828
("link-output", Some("link")),
2929
("obj-output", Some("obj")),
3030
("dep-output", Some("dep-info")),
31-
("multi-output", Some("asm,obj")),
3231
];
3332
for (output_file, emit) in flags {
3433
fs::remove_file(output_file).unwrap_or_default();
3534
compile(output_file, emit);
36-
fs::remove_file(output_file);
35+
eprintln!("{output_file}");
36+
fs::remove_file(output_file).unwrap();
37+
}
38+
39+
{
40+
// multi-output has two output artifacts with extensions.
41+
fs::remove_file("multi-output.s").unwrap_or_default();
42+
fs::remove_file("multi-output.o").unwrap_or_default();
43+
compile("multi-output", Some("asm,obj"));
44+
fs::remove_file("multi-output.s").unwrap();
45+
fs::remove_file("multi-output.o").unwrap();
3746
}
3847
}

0 commit comments

Comments
 (0)