File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1383,20 +1383,19 @@ fn dotdot_slashdot_at_end_of_symlink_all_inside_dir() {
13831383
13841384/// Ensure that a path of "/" is rejected.
13851385#[ test]
1386- #[ cfg_attr( windows, ignore) ]
13871386fn statat_slash ( ) {
13881387 let tmpdir = tmpdir ( ) ;
13891388
1390- error ! ( tmpdir. metadata( "/" ) , "a path led outside of the filesystem" ) ;
1391- error ! (
1389+ error_contains ! ( tmpdir. metadata( "/" ) , "a path led outside of the filesystem" ) ;
1390+ error_contains ! (
13921391 tmpdir. metadata( "/foo" ) ,
13931392 "a path led outside of the filesystem"
13941393 ) ;
1395- error ! (
1394+ error_contains ! (
13961395 tmpdir. symlink_metadata( "/" ) ,
13971396 "a path led outside of the filesyste"
13981397 ) ;
1399- error ! (
1398+ error_contains ! (
14001399 tmpdir. symlink_metadata( "/foo" ) ,
14011400 "a path led outside of the filesyste"
14021401 ) ;
You can’t perform that action at this time.
0 commit comments