diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-11-21 22:27:15 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-02 10:46:34 -0800 |
commit | e1baab9dc132f18e13f446df0271a5e46723848d (patch) | |
tree | 3e4e6714d843edc493dfc3cf879d659bbd264e65 /test/test_ptymaster_drop.rs | |
parent | d374a1ecd3f69027a2ce28e87806f459ef3f9105 (diff) | |
download | nix-e1baab9dc132f18e13f446df0271a5e46723848d.zip |
Upgrade to Bitflags 1.0
The libc_bitflags! macro was replaced with a non-recursive one supporting
only public structs. I could not figure out how to make the old macro work
with the upgrade, so I reworked part of the bitflags! macro directly to suit
our needs, much as the original recursive macro was made. There are no uses
of this macro for non-public structs, so this is not a problem for internal code.
Diffstat (limited to 'test/test_ptymaster_drop.rs')
-rw-r--r-- | test/test_ptymaster_drop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ptymaster_drop.rs b/test/test_ptymaster_drop.rs index 664a4dd6..bde8510c 100644 --- a/test/test_ptymaster_drop.rs +++ b/test/test_ptymaster_drop.rs @@ -1,6 +1,6 @@ extern crate nix; -use nix::fcntl::O_RDWR; +use nix::fcntl::OFlag; use nix::pty::*; use nix::unistd::close; use std::os::unix::io::AsRawFd; @@ -15,7 +15,7 @@ use std::os::unix::io::AsRawFd; // why. It doesn't happen on any other target, and it doesn't happen on my PC. #[cfg_attr(all(target_env = "musl", target_arch = "x86"), ignore)] fn test_double_close() { - let m = posix_openpt(O_RDWR).unwrap(); + let m = posix_openpt(OFlag::O_RDWR).unwrap(); close(m.as_raw_fd()).unwrap(); drop(m); // should panic here } |