@@ -712,7 +712,7 @@ mod tests {
712
712
713
713
use rustup_macros:: unit_test as test;
714
714
715
- use crate :: currentprocess ;
715
+ use crate :: process ;
716
716
use crate :: test:: with_saved_path;
717
717
718
718
fn wide ( str : & str ) -> Vec < u16 > {
@@ -753,9 +753,9 @@ mod tests {
753
753
#[ test]
754
754
fn windows_path_regkey_type ( ) {
755
755
// per issue #261, setting PATH should use REG_EXPAND_SZ.
756
- let tp = currentprocess :: TestProcess :: default ( ) ;
756
+ let tp = process :: TestProcess :: default ( ) ;
757
757
with_saved_path ( & mut || {
758
- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
758
+ process :: with ( tp. clone ( ) . into ( ) , || {
759
759
let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
760
760
let environment = root
761
761
. open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
@@ -783,9 +783,9 @@ mod tests {
783
783
use std:: io;
784
784
// during uninstall the PATH key may end up empty; if so we should
785
785
// delete it.
786
- let tp = currentprocess :: TestProcess :: default ( ) ;
786
+ let tp = process :: TestProcess :: default ( ) ;
787
787
with_saved_path ( & mut || {
788
- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
788
+ process :: with ( tp. clone ( ) . into ( ) , || {
789
789
let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
790
790
let environment = root
791
791
. open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
@@ -818,15 +818,15 @@ mod tests {
818
818
#[ test]
819
819
fn windows_doesnt_mess_with_a_non_string_path ( ) {
820
820
// This writes an error, so we want a sink for it.
821
- let tp = currentprocess :: TestProcess {
821
+ let tp = process :: TestProcess {
822
822
vars : [ ( "HOME" . to_string ( ) , "/unused" . to_string ( ) ) ]
823
823
. iter ( )
824
824
. cloned ( )
825
825
. collect ( ) ,
826
826
..Default :: default ( )
827
827
} ;
828
828
with_saved_path ( & mut || {
829
- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
829
+ process :: with ( tp. clone ( ) . into ( ) , || {
830
830
let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
831
831
let environment = root
832
832
. open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
@@ -853,9 +853,9 @@ mod tests {
853
853
#[ test]
854
854
fn windows_treat_missing_path_as_empty ( ) {
855
855
// during install the PATH key may be missing; treat it as empty
856
- let tp = currentprocess :: TestProcess :: default ( ) ;
856
+ let tp = process :: TestProcess :: default ( ) ;
857
857
with_saved_path ( & mut || {
858
- currentprocess :: with ( tp. clone ( ) . into ( ) , || {
858
+ process :: with ( tp. clone ( ) . into ( ) , || {
859
859
let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
860
860
let environment = root
861
861
. open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
0 commit comments