File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
crates/libs/kill_tree/src Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,11 @@ mod tests {
215
215
#[ cfg( unix) ]
216
216
#[ test]
217
217
fn error_display_unix ( ) {
218
- let error = Error :: Unix ( nix:: Error :: UnsupportedOperation ) ;
219
- assert_eq ! ( format!( "{error}" ) , "Unix error: UnsupportedOperation" ) ;
218
+ let error = Error :: Unix ( nix:: Error :: EPERM ) ;
219
+ assert_eq ! (
220
+ format!( "{error}" ) ,
221
+ "Unix error: EPERM: Operation not permitted"
222
+ ) ;
220
223
}
221
224
222
225
#[ test]
@@ -240,9 +243,12 @@ mod tests {
240
243
#[ cfg( unix) ]
241
244
#[ test]
242
245
fn from_unix_error ( ) {
243
- let error = nix:: Error :: UnsupportedOperation ;
246
+ let error = nix:: Error :: EPERM ;
244
247
let error = Error :: from ( error) ;
245
- assert_eq ! ( format!( "{error}" ) , "Unix error: UnsupportedOperation" ) ;
248
+ assert_eq ! (
249
+ format!( "{error}" ) ,
250
+ "Unix error: EPERM: Operation not permitted"
251
+ ) ;
246
252
}
247
253
248
254
#[ test]
You can’t perform that action at this time.
0 commit comments