Skip to content

Commit e69da51

Browse files
committed
Fix Windows compilation.
1 parent bb53c34 commit e69da51

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/fs_additional.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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)]
13871386
fn 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
);

0 commit comments

Comments
 (0)