@@ -712,7 +712,7 @@ mod tests {
712712
713713 use rustup_macros:: unit_test as test;
714714
715- use crate :: currentprocess ;
715+ use crate :: process ;
716716 use crate :: test:: with_saved_path;
717717
718718 fn wide ( str : & str ) -> Vec < u16 > {
@@ -753,9 +753,9 @@ mod tests {
753753 #[ test]
754754 fn windows_path_regkey_type ( ) {
755755 // per issue #261, setting PATH should use REG_EXPAND_SZ.
756- let tp = currentprocess :: TestProcess :: default ( ) ;
756+ let tp = process :: TestProcess :: default ( ) ;
757757 with_saved_path ( & mut || {
758- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
758+ process :: with ( tp. clone ( ) . into ( ) , || {
759759 let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
760760 let environment = root
761761 . open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
@@ -783,9 +783,9 @@ mod tests {
783783 use std:: io;
784784 // during uninstall the PATH key may end up empty; if so we should
785785 // delete it.
786- let tp = currentprocess :: TestProcess :: default ( ) ;
786+ let tp = process :: TestProcess :: default ( ) ;
787787 with_saved_path ( & mut || {
788- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
788+ process :: with ( tp. clone ( ) . into ( ) , || {
789789 let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
790790 let environment = root
791791 . open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
@@ -818,15 +818,15 @@ mod tests {
818818 #[ test]
819819 fn windows_doesnt_mess_with_a_non_string_path ( ) {
820820 // This writes an error, so we want a sink for it.
821- let tp = currentprocess :: TestProcess {
821+ let tp = process :: TestProcess {
822822 vars : [ ( "HOME" . to_string ( ) , "/unused" . to_string ( ) ) ]
823823 . iter ( )
824824 . cloned ( )
825825 . collect ( ) ,
826826 ..Default :: default ( )
827827 } ;
828828 with_saved_path ( & mut || {
829- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
829+ process :: with ( tp. clone ( ) . into ( ) , || {
830830 let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
831831 let environment = root
832832 . open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
@@ -853,9 +853,9 @@ mod tests {
853853 #[ test]
854854 fn windows_treat_missing_path_as_empty ( ) {
855855 // during install the PATH key may be missing; treat it as empty
856- let tp = currentprocess :: TestProcess :: default ( ) ;
856+ let tp = process :: TestProcess :: default ( ) ;
857857 with_saved_path ( & mut || {
858- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
858+ process :: with ( tp. clone ( ) . into ( ) , || {
859859 let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
860860 let environment = root
861861 . open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
0 commit comments