@@ -2339,8 +2339,10 @@ mod tests {
2339
2339
let filename = & tmpdir. join ( "file_that_does_not_exist.txt" ) ;
2340
2340
let result = File :: open ( filename) ;
2341
2341
2342
- #[ cfg( unix) ]
2342
+ #[ cfg( all ( unix, not ( target_os = "vxworks" ) ) ) ]
2343
2343
error ! ( result, "No such file or directory" ) ;
2344
+ #[ cfg( target_os = "vxworks" ) ]
2345
+ error ! ( result, "no such file or directory" ) ;
2344
2346
#[ cfg( windows) ]
2345
2347
error ! ( result, 2 ) ; // ERROR_FILE_NOT_FOUND
2346
2348
}
@@ -2352,8 +2354,10 @@ mod tests {
2352
2354
2353
2355
let result = fs:: remove_file ( filename) ;
2354
2356
2355
- #[ cfg( unix) ]
2357
+ #[ cfg( all ( unix, not ( target_os = "vxworks" ) ) ) ]
2356
2358
error ! ( result, "No such file or directory" ) ;
2359
+ #[ cfg( target_os = "vxworks" ) ]
2360
+ error ! ( result, "no such file or directory" ) ;
2357
2361
#[ cfg( windows) ]
2358
2362
error ! ( result, 2 ) ; // ERROR_FILE_NOT_FOUND
2359
2363
}
@@ -2553,7 +2557,10 @@ mod tests {
2553
2557
2554
2558
check ! ( fs:: set_permissions( filename, fs:: Permissions :: from_mode( 0o1777 ) ) ) ;
2555
2559
let metadata1 = check ! ( fs:: metadata( filename) ) ;
2560
+ #[ cfg( all( unix, not( target_os = "vxworks" ) ) ) ]
2556
2561
assert_eq ! ( mask & metadata1. permissions( ) . mode( ) , 0o1777 ) ;
2562
+ #[ cfg( target_os = "vxworks" ) ]
2563
+ assert_eq ! ( mask & metadata1. permissions( ) . mode( ) , 0o0777 ) ;
2557
2564
}
2558
2565
2559
2566
#[ test]
0 commit comments