Skip to content

Commit

Permalink
Fix the test to be independent of the expected error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jun 28, 2024
1 parent f36568f commit 25d9a3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cap-basics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,6 @@ fn symlink_loop_from_rename() {
fn proc_self_fd() {
let fd = check!(std::fs::File::open("/proc/self/fd"));
let dir = cap_std::fs::Dir::from_std_file(fd);
error!(dir.open("0"), "Too many levels of symbolic links");
// This should fail with "too many levels of symbolic links".
dir.open("0").unwrap_err();
}

0 comments on commit 25d9a3e

Please sign in to comment.