From 2d953c4a30798a56ea401da23730a2d89bc5e4e1 Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 23 Nov 2008 20:17:17 +0000 Subject: Mark all the places where Linux is not POSIX-compilant. Tested on ext3. --- tools/regression/fstest/tests/chown/00.t | 4 ++++ tools/regression/fstest/tests/rename/21.t | 3 +++ tools/regression/fstest/tests/unlink/08.t | 1 + 3 files changed, 8 insertions(+) (limited to 'tools/regression/fstest/tests') diff --git a/tools/regression/fstest/tests/chown/00.t b/tools/regression/fstest/tests/chown/00.t index 103ff59..eb13010 100644 --- a/tools/regression/fstest/tests/chown/00.t +++ b/tools/regression/fstest/tests/chown/00.t @@ -238,6 +238,7 @@ ctime1=`${fstest} stat ${n0} ctime` sleep 1 expect 0 -- chown ${n0} -1 -1 ctime2=`${fstest} stat ${n0} ctime` +todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated." test_check $ctime1 -eq $ctime2 expect 0 unlink ${n0} # 158 @@ -246,6 +247,7 @@ ctime1=`${fstest} stat ${n0} ctime` sleep 1 expect 0 -- chown ${n0} -1 -1 ctime2=`${fstest} stat ${n0} ctime` +todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated." test_check $ctime1 -eq $ctime2 expect 0 rmdir ${n0} # 162 @@ -254,6 +256,7 @@ ctime1=`${fstest} stat ${n0} ctime` sleep 1 expect 0 -- chown ${n0} -1 -1 ctime2=`${fstest} stat ${n0} ctime` +todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated." test_check $ctime1 -eq $ctime2 expect 0 unlink ${n0} # 166 @@ -262,6 +265,7 @@ ctime1=`${fstest} lstat ${n0} ctime` sleep 1 expect 0 -- lchown ${n0} -1 -1 ctime2=`${fstest} lstat ${n0} ctime` +todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated." test_check $ctime1 -eq $ctime2 expect 0 unlink ${n0} diff --git a/tools/regression/fstest/tests/rename/21.t b/tools/regression/fstest/tests/rename/21.t index a9445c7..7fa2f9c 100644 --- a/tools/regression/fstest/tests/rename/21.t +++ b/tools/regression/fstest/tests/rename/21.t @@ -37,9 +37,12 @@ expect ENOENT rmdir ${n3}/${n1} # Check that write permission on containing directory (${n2}) is enough # to move file (${n0}) from that directory. expect 0 create ${n2}/${n0} 0755 +todo Linux "According to POSIX, write access to ${n2}/${n0} and (if exists) ${n3}/${n1} may be required if ${n0} and (if exists) ${n1} are directories, not regular files." expect 0 -u 65534 -g 65534 rename ${n2}/${n0} ${n3}/${n1} +todo Linux "According to POSIX, write access to ${n2}/${n0} and (if exists) ${n3}/${n1} may be required if ${n0} and (if exists) ${n1} are directories, not regular files." expect 0 unlink ${n3}/${n1} +todo Linux "According to POSIX, write access to ${n2}/${n0} and (if exists) ${n3}/${n1} may be required if ${n0} and (if exists) ${n1} are directories, not regular files." expect ENOENT unlink ${n2}/${n0} expect 0 rmdir ${n3} diff --git a/tools/regression/fstest/tests/unlink/08.t b/tools/regression/fstest/tests/unlink/08.t index e872a19..ac81bd6 100644 --- a/tools/regression/fstest/tests/unlink/08.t +++ b/tools/regression/fstest/tests/unlink/08.t @@ -11,5 +11,6 @@ echo "1..3" n0=`namegen` expect 0 mkdir ${n0} 0755 +todo Linux "According to POSIX: EPERM - The file named by path is a directory, and either the calling process does not have appropriate privileges, or the implementation prohibits using unlink() on directories." expect "0|EPERM" unlink ${n0} expect "0|ENOENT" rmdir ${n0} -- cgit v1.1