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 @@ -1255,7 +1255,7 @@ impl<'test> TestCx<'test> {
1255
1255
fn exec_compiled_test ( & self ) -> ProcRes {
1256
1256
let env = & self . props . exec_env ;
1257
1257
1258
- match & * self . config . target {
1258
+ let proc_res = match & * self . config . target {
1259
1259
// This is pretty similar to below, we're transforming:
1260
1260
//
1261
1261
// program arg1 arg2
@@ -1310,7 +1310,13 @@ impl<'test> TestCx<'test> {
1310
1310
None ,
1311
1311
)
1312
1312
}
1313
- }
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
1314
1320
}
1315
1321
1316
1322
/// For each `aux-build: foo/bar` annotation, we check to find the
You can’t perform that action at this time.
0 commit comments