File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ use uucore::backup_control::{self, BackupMode};
2323use uucore:: buf_copy:: copy_stream;
2424use uucore:: display:: Quotable ;
2525use uucore:: entries:: { grp2gid, usr2uid} ;
26+ use uucore:: error:: UIoError ;
2627use uucore:: error:: { FromIo , UError , UResult , UUsageError } ;
2728use uucore:: fs:: dir_strip_dot_for_creation;
2829use uucore:: perms:: { Verbosity , VerbosityLevel , wrap_chown} ;
@@ -34,7 +35,6 @@ use uucore::selinux::{
3435} ;
3536use uucore:: translate;
3637use uucore:: { format_usage, show, show_error, show_if_err} ;
37- use uucore:: error:: UIoError ;
3838
3939#[ cfg( unix) ]
4040use std:: os:: unix:: fs:: { FileTypeExt , MetadataExt } ;
Original file line number Diff line number Diff line change @@ -123,18 +123,24 @@ fn test_install_ancestors_mode_directories() {
123123fn test_install_remove_impermissible_dst_file ( ) {
124124 let src_file = "/dev/null" ;
125125 let dst_file = "/dev/full" ;
126- new_ucmd ! ( ) . args ( & [ src_file, dst_file] ) . fails ( ) . stderr_only ( format ! (
127- "install: failed to remove existing file '{dst_file}': Permission denied\n "
128- ) ) ;
126+ new_ucmd ! ( )
127+ . args ( & [ src_file, dst_file] )
128+ . fails ( )
129+ . stderr_only ( format ! (
130+ "install: failed to remove existing file '{dst_file}': Permission denied\n "
131+ ) ) ;
129132}
130133
131134#[ test]
132135fn test_install_remove_inaccessible_dst_file ( ) {
133136 let src_file = "/dev/null" ;
134137 let dst_file = "/root/file" ;
135- new_ucmd ! ( ) . args ( & [ src_file, dst_file] ) . fails ( ) . stderr_only ( format ! (
136- "install: cannot stat '{dst_file}': Permission denied\n "
137- ) ) ;
138+ new_ucmd ! ( )
139+ . args ( & [ src_file, dst_file] )
140+ . fails ( )
141+ . stderr_only ( format ! (
142+ "install: cannot stat '{dst_file}': Permission denied\n "
143+ ) ) ;
138144}
139145
140146#[ test]
You can’t perform that action at this time.
0 commit comments