Disabled check in test 28 which hard links a directory; this is nott required by POSIX and not supported (currently) by MINIX. Also corrected total number of tests.

This commit is contained in:
Erik van der Kouwe 2009-09-04 20:23:25 +00:00
parent 141e5531ad
commit f92e0dafb5
2 changed files with 3 additions and 1 deletions

View file

@ -12,7 +12,7 @@ badones= # list of tests that failed
# Print test welcome message # Print test welcome message
clr clr
echo "Running POSIX compliance test suite. There are 42 tests in total." echo "Running POSIX compliance test suite. There are 43 tests in total."
echo " " echo " "
# Run all the tests, keeping track of who failed. # Run all the tests, keeping track of who failed.

View file

@ -234,12 +234,14 @@ void test28b()
if (unlink("foo/empty") != 0) e(34); /* rm empty */ if (unlink("foo/empty") != 0) e(34); /* rm empty */
/* See what happens if foo is linked. */ /* See what happens if foo is linked. */
#if 0
if (superuser) { if (superuser) {
if (link("foo", "footoo") != 0) e(35); /* foo still */ if (link("foo", "footoo") != 0) e(35); /* foo still */
if (rmdir("footoo") != 0) e(36); /* exist */ if (rmdir("footoo") != 0) e(36); /* exist */
if (chdir("footoo") != -1) e(37); /* footoo */ if (chdir("footoo") != -1) e(37); /* footoo */
if (errno != ENOENT) e(38); /* is gone */ if (errno != ENOENT) e(38); /* is gone */
} }
#endif
#ifdef _MINIX #ifdef _MINIX
/* Some implementations might allow users to link directories. */ /* Some implementations might allow users to link directories. */
if (!superuser) { if (!superuser) {