@@ -1613,8 +1613,13 @@ impl<'test> TestCx<'test> {
16131613 test_client
16141614 . args ( & [ "run" , & support_libs. len ( ) . to_string ( ) , & prog] )
16151615 . args ( support_libs)
1616- . args ( args)
1617- . envs ( env. clone ( ) ) ;
1616+ . args ( args) ;
1617+
1618+ for key in & self . props . unset_exec_env {
1619+ test_client. env_remove ( key) ;
1620+ }
1621+ test_client. envs ( env. clone ( ) ) ;
1622+
16181623 self . compose_and_run (
16191624 test_client,
16201625 self . config . run_lib_path . to_str ( ) . unwrap ( ) ,
@@ -1626,7 +1631,13 @@ impl<'test> TestCx<'test> {
16261631 let aux_dir = self . aux_output_dir_name ( ) ;
16271632 let ProcArgs { prog, args } = self . make_run_args ( ) ;
16281633 let mut wr_run = Command :: new ( "wr-run" ) ;
1629- wr_run. args ( & [ & prog] ) . args ( args) . envs ( env. clone ( ) ) ;
1634+ wr_run. args ( & [ & prog] ) . args ( args) ;
1635+
1636+ for key in & self . props . unset_exec_env {
1637+ wr_run. env_remove ( key) ;
1638+ }
1639+ wr_run. envs ( env. clone ( ) ) ;
1640+
16301641 self . compose_and_run (
16311642 wr_run,
16321643 self . config . run_lib_path . to_str ( ) . unwrap ( ) ,
@@ -1638,7 +1649,13 @@ impl<'test> TestCx<'test> {
16381649 let aux_dir = self . aux_output_dir_name ( ) ;
16391650 let ProcArgs { prog, args } = self . make_run_args ( ) ;
16401651 let mut program = Command :: new ( & prog) ;
1641- program. args ( args) . current_dir ( & self . output_base_dir ( ) ) . envs ( env. clone ( ) ) ;
1652+ program. args ( args) . current_dir ( & self . output_base_dir ( ) ) ;
1653+
1654+ for key in & self . props . unset_exec_env {
1655+ program. env_remove ( key) ;
1656+ }
1657+ program. envs ( env. clone ( ) ) ;
1658+
16421659 self . compose_and_run (
16431660 program,
16441661 self . config . run_lib_path . to_str ( ) . unwrap ( ) ,
0 commit comments