We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ed7697 commit 8088e20Copy full SHA for 8088e20
src/tools/compiletest/src/runtest.rs
@@ -1255,7 +1255,7 @@ impl<'test> TestCx<'test> {
1255
fn exec_compiled_test(&self) -> ProcRes {
1256
let env = &self.props.exec_env;
1257
1258
- match &*self.config.target {
+ let proc_res = match &*self.config.target {
1259
// This is pretty similar to below, we're transforming:
1260
//
1261
// program arg1 arg2
@@ -1310,7 +1310,13 @@ impl<'test> TestCx<'test> {
1310
None,
1311
)
1312
}
1313
- }
+ };
1314
+
1315
+ // delete the executable after running it to save space.
1316
+ // it is ok if the deletion failed.
1317
+ let _ = fs::remove_file(self.make_exe_name());
1318
1319
+ proc_res
1320
1321
1322
/// For each `aux-build: foo/bar` annotation, we check to find the
0 commit comments