Skip to content

Commit cea9dd8

Browse files
committed
test: Use an ignore message for fs Android skips
1 parent 4bf24d2 commit cea9dd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/fs/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ fn readlink_not_symlink() {
12631263
}
12641264

12651265
#[test]
1266-
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating hardlinks
1266+
#[cfg_attr(target_os = "android", ignore = "Android SELinux rules prevent creating hardlinks")]
12671267
fn links_work() {
12681268
let tmpdir = tmpdir();
12691269
let input = tmpdir.join("in.txt");
@@ -1759,7 +1759,7 @@ fn metadata_access_times() {
17591759

17601760
/// Test creating hard links to symlinks.
17611761
#[test]
1762-
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating hardlinks
1762+
#[cfg_attr(target_os = "android", ignore = "Android SELinux rules prevent creating hardlinks")]
17631763
fn symlink_hard_link() {
17641764
let tmpdir = tmpdir();
17651765
if !got_symlink_permission(&tmpdir) {

0 commit comments

Comments
 (0)