@@ -1613,8 +1613,13 @@ impl<'test> TestCx<'test> {
1613
1613
test_client
1614
1614
. args ( & [ "run" , & support_libs. len ( ) . to_string ( ) , & prog] )
1615
1615
. 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
+
1618
1623
self . compose_and_run (
1619
1624
test_client,
1620
1625
self . config . run_lib_path . to_str ( ) . unwrap ( ) ,
@@ -1626,7 +1631,13 @@ impl<'test> TestCx<'test> {
1626
1631
let aux_dir = self . aux_output_dir_name ( ) ;
1627
1632
let ProcArgs { prog, args } = self . make_run_args ( ) ;
1628
1633
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
+
1630
1641
self . compose_and_run (
1631
1642
wr_run,
1632
1643
self . config . run_lib_path . to_str ( ) . unwrap ( ) ,
@@ -1638,7 +1649,13 @@ impl<'test> TestCx<'test> {
1638
1649
let aux_dir = self . aux_output_dir_name ( ) ;
1639
1650
let ProcArgs { prog, args } = self . make_run_args ( ) ;
1640
1651
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
+
1642
1659
self . compose_and_run (
1643
1660
program,
1644
1661
self . config . run_lib_path . to_str ( ) . unwrap ( ) ,
0 commit comments