unlink("/") fails with EISDIR instead of EBUSY on FreeBSD; test for that
instead Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
30f7722958
commit
67654a1af5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273396
@ -85,7 +85,11 @@ ATF_TC_BODY(unlink_err, tc)
|
||||
(void)memset(buf, 'x', sizeof(buf));
|
||||
|
||||
errno = 0;
|
||||
#if defined(__FreeBSD__)
|
||||
ATF_REQUIRE_ERRNO(EISDIR, unlink("/") == -1);
|
||||
#else
|
||||
ATF_REQUIRE_ERRNO(EBUSY, unlink("/") == -1);
|
||||
#endif
|
||||
|
||||
errno = 0;
|
||||
ATF_REQUIRE_ERRNO(ENAMETOOLONG, unlink(buf) == -1);
|
||||
|
Loading…
Reference in New Issue
Block a user