File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1343,7 +1343,7 @@ impl<'test> TestCx<'test> {
1343
1343
fn exec_compiled_test ( & self ) -> ProcRes {
1344
1344
let env = & self . props . exec_env ;
1345
1345
1346
- match & * self . config . target {
1346
+ let proc_res = match & * self . config . target {
1347
1347
// This is pretty similar to below, we're transforming:
1348
1348
//
1349
1349
// program arg1 arg2
@@ -1398,7 +1398,13 @@ impl<'test> TestCx<'test> {
1398
1398
None ,
1399
1399
)
1400
1400
}
1401
- }
1401
+ } ;
1402
+
1403
+ // delete the executable after running it to save space.
1404
+ // it is ok if the deletion failed.
1405
+ let _ = fs:: remove_file ( self . make_exe_name ( ) ) ;
1406
+
1407
+ proc_res
1402
1408
}
1403
1409
1404
1410
/// For each `aux-build: foo/bar` annotation, we check to find the
You can’t perform that action at this time.
0 commit comments