Skip to content

Commit c301e41

Browse files
committed
test: restore more tests on cygwin
They pass on Cygwin, but not on MSYS2 as intended.
1 parent 42625a4 commit c301e41

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

test/sys/test_stat.rs

-5
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ fn test_stat_fstat_lstat() {
145145
}
146146

147147
#[test]
148-
#[cfg_attr(target_os = "cygwin", ignore)]
149148
fn test_fchmod() {
150149
let tempdir = tempfile::tempdir().unwrap();
151150
let filename = tempdir.path().join("foo.txt");
@@ -169,7 +168,6 @@ fn test_fchmod() {
169168

170169
#[test]
171170
#[cfg(not(target_os = "redox"))]
172-
#[cfg_attr(target_os = "cygwin", ignore)]
173171
fn test_fchmodat() {
174172
let _dr = crate::DirRestore::new();
175173
let tempdir = tempfile::tempdir().unwrap();
@@ -333,7 +331,6 @@ fn test_mkdirat_success_path() {
333331

334332
#[test]
335333
#[cfg(not(any(target_os = "redox", target_os = "haiku")))]
336-
#[cfg_attr(target_os = "cygwin", ignore)]
337334
fn test_mkdirat_success_mode() {
338335
let expected_bits =
339336
stat::SFlag::S_IFDIR.bits() | stat::Mode::S_IRWXU.bits();
@@ -374,7 +371,6 @@ fn test_mkdirat_fail() {
374371
target_os = "redox",
375372
target_os = "solaris"
376373
)))]
377-
#[cfg_attr(target_os = "cygwin", ignore)]
378374
fn test_mknod() {
379375
use stat::{lstat, mknod, SFlag};
380376

@@ -395,7 +391,6 @@ fn test_mknod() {
395391
target_os = "haiku",
396392
target_os = "redox"
397393
)))]
398-
#[cfg_attr(target_os = "cygwin", ignore)]
399394
fn test_mknodat() {
400395
use fcntl::{AtFlags, OFlag};
401396
use nix::dir::Dir;

test/test_unistd.rs

-2
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,6 @@ fn test_getcwd() {
516516
}
517517

518518
#[test]
519-
#[cfg_attr(target_os = "cygwin", ignore)]
520519
fn test_chown() {
521520
// Testing for anything other than our own UID/GID is hard.
522521
let uid = Some(getuid());
@@ -551,7 +550,6 @@ fn test_fchown() {
551550

552551
#[test]
553552
#[cfg(not(target_os = "redox"))]
554-
#[cfg_attr(target_os = "cygwin", ignore)]
555553
fn test_fchownat() {
556554
use nix::fcntl::AtFlags;
557555
use nix::fcntl::AT_FDCWD;

0 commit comments

Comments
 (0)