@@ -3,13 +3,12 @@ use std::fs::{self, File};
33use std:: io:: prelude:: * ;
44
55use cargo:: util:: paths:: dylib_path_envvar;
6- use cargo:: util:: { process, ProcessBuilder } ;
6+ use cargo:: util:: process;
77use support:: { basic_manifest, basic_bin_manifest, basic_lib_manifest, is_nightly, rustc_host, sleep_ms} ;
88use support:: paths:: { root, CargoPathExt } ;
99use support:: ProjectBuilder ;
10- use support:: { execs, main_file, project} ;
10+ use support:: { Execs , execs, main_file, project} ;
1111use support:: registry:: Package ;
12- use support:: ChannelChanger ;
1312use support:: hamcrest:: { assert_that, existing_dir, existing_file, is_not} ;
1413
1514#[ test]
@@ -1553,15 +1552,15 @@ fn crate_authors_env_vars() {
15531552}
15541553
15551554// The tester may already have LD_LIBRARY_PATH=::/foo/bar which leads to a false positive error
1556- fn setenv_for_removing_empty_component ( mut p : ProcessBuilder ) -> ProcessBuilder {
1555+ fn setenv_for_removing_empty_component ( mut execs : Execs ) -> Execs {
15571556 let v = dylib_path_envvar ( ) ;
15581557 if let Ok ( search_path) = env:: var ( v) {
15591558 let new_search_path = env:: join_paths (
15601559 env:: split_paths ( & search_path) . filter ( |e| !e. as_os_str ( ) . is_empty ( ) ) ,
15611560 ) . expect ( "join_paths" ) ;
1562- p . env ( v, new_search_path) ; // build_command() will override LD_LIBRARY_PATH accordingly
1561+ execs . env ( v, new_search_path) ; // build_command() will override LD_LIBRARY_PATH accordingly
15631562 }
1564- p
1563+ execs
15651564}
15661565
15671566// Regression test for #4277
0 commit comments