We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77644e2 commit bdcbc6fCopy full SHA for bdcbc6f
tests/cap-basics.rs
@@ -217,10 +217,11 @@ fn symlink_loop_from_rename() {
217
check!(tmpdir.open("link"));
218
}
219
220
-#[cfg(linux)]
+#[cfg(target_os = "linux")]
221
#[test]
222
fn proc_self_fd() {
223
- let fd = check!(File::open("/proc/self/fd"));
+ let fd = check!(std::fs::File::open("/proc/self/fd"));
224
let dir = cap_std::fs::Dir::from_std_file(fd);
225
- error!(dir.open("0"), "No such file");
+ // This should fail with "too many levels of symbolic links".
226
+ dir.open("0").unwrap_err();
227
0 commit comments