File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
67
67
([ #2097 ] ( https://github.com/nix-rust/nix/pull/2097 ) )
68
68
- Add the ability to set ` kevent_flags ` on ` SigEvent ` .
69
69
([ #1731 ] ( https://github.com/nix-rust/nix/pull/1731 ) )
70
+ - Added ` F_GETPATH ` FcntlFlags entry on Apple/NetBSD/DragonflyBSD for ` ::nix::fcntl ` .
71
+ ([ #2142 ] ( https://github.com/nix-rust/nix/pull/2142 ) )
70
72
71
73
### Changed
72
74
Original file line number Diff line number Diff line change @@ -582,6 +582,9 @@ mod test_apple_netbsd {
582
582
let res =
583
583
fcntl ( fd, FcntlArg :: F_GETPATH ( & mut path) ) . expect ( "get path failed" ) ;
584
584
assert_ne ! ( res, -1 ) ;
585
- assert_eq ! ( path, tmp. path( ) ) ;
585
+ /// We purposely check the filenames, since they are supposed to be unique.
586
+ /// The left operand tend to have `/private/var` whereas the right does not contains
587
+ /// the `/private` part even tough in practice they lead to the same file.
588
+ assert_eq ! ( path. as_path( ) . file_name( ) , tmp. path( ) . file_name( ) ) ;
586
589
}
587
590
}
You can’t perform that action at this time.
0 commit comments