File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ use uucore::backup_control::{self, BackupMode};
2424use uucore:: buf_copy:: copy_stream;
2525use uucore:: display:: Quotable ;
2626use uucore:: entries:: { grp2gid, usr2uid} ;
27+ use uucore:: error:: UIoError ;
2728use uucore:: error:: { FromIo , UError , UResult , UUsageError } ;
2829use uucore:: fs:: dir_strip_dot_for_creation;
2930use uucore:: perms:: { Verbosity , VerbosityLevel , wrap_chown} ;
@@ -35,7 +36,6 @@ use uucore::selinux::{
3536} ;
3637use uucore:: translate;
3738use uucore:: { format_usage, show, show_error, show_if_err} ;
38- use uucore:: error:: UIoError ;
3939
4040#[ cfg( unix) ]
4141use std:: os:: unix:: fs:: 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