Partially revert r311236
There's no sense in trying to close a file descriptor from the negative cases with unlink_test; it's best to ignore these cases. The mkfifo case does make sense to keep though. MFC after: 3 days
This commit is contained in:
parent
b4d60f9802
commit
0e0dd02306
@ -63,12 +63,7 @@ ATF_TC_BODY(unlink_basic, tc)
|
||||
ATF_REQUIRE(unlink(path) == 0);
|
||||
|
||||
errno = 0;
|
||||
#ifdef __FreeBSD__
|
||||
ATF_REQUIRE_ERRNO(ENOENT, (fd = open(path, O_RDONLY)) == -1);
|
||||
(void)close(fd);
|
||||
#else
|
||||
ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -128,12 +123,7 @@ ATF_TC_BODY(unlink_fifo, tc)
|
||||
ATF_REQUIRE(unlink(path) == 0);
|
||||
|
||||
errno = 0;
|
||||
#ifdef __FreeBSD__
|
||||
ATF_REQUIRE_ERRNO(ENOENT, (fd = open(path, O_RDONLY)) == -1);
|
||||
(void)close(fd);
|
||||
#else
|
||||
ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
|
||||
#endif
|
||||
}
|
||||
|
||||
ATF_TC_CLEANUP(unlink_fifo, tc)
|
||||
|
Loading…
Reference in New Issue
Block a user