source: rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn @ 4f6cff8d

4.115
Last change on this file since 4f6cff8d was 4f6cff8d, checked in by Joel Sherrill <joel.sherrill@…>, on 07/19/11 at 13:10:46

2011-07-19 Joel Sherrill <joel.sherrilL@…>

PR 1838/filesystem

  • psxfchx01/init.c, psxfchx01/psxfchx01.scn: fchmod() does not need a writeable file descriptor.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1*** TEST Posix file op tests - 01 ***
2Init - fchdir tests
3Init - Attempt fchdir with bad file descriptor - expect EBADF
4Init - Attempt fchdir with bad file descriptor - expect EBADF
5Init - opening /newfile in write-mode -- OK
6Init - fchdir on the file descriptor - expect EINVAL
7Init - closing /newfile -- OK
8Init - removing /newfile -- OK
9Init - opening /newfile in read-mode -- OK
10Init - fchdir on the file descriptor - expect ENOTDIR
11Init - closing and removing /newfile -- OK
12Init - create directory  /tmp - RWX permissions -- OK
13Init - open the /tmp, get the file descriptor -- OK
14Init - fchdir on the file descriptor -- OK
15Init - close the file descriptor -- OK
16Init - remove directory /tmp -- OK
17Init - creating directory /tmp - read permission -- OK
18Init - open the /tmp, get the file descriptor -- OK
19Init - attempt fchdir on the file descriptor -- expect EACCES
20Init - close the file descriptor -- OK
21Init - remove directory /tmp -- OK
22End of fchdir tests
23
24Init - fchmod tests
25Init - fchmod, with a bad file descriptor - expect EBADF
26Init - fchmod, with an unopened file descriptor - expect EBADF
27Init - open new file: /newfile in read-only mode -- OK
28Init - fchmod, with the opened file descriptor -- OK
29Init - close and remove /newfile
30Init - open new file: /newfile in read-write mode -- OK
31Init - fchmod, with the opened file descriptor -- OK
32Init - close and remove /newfile -- OK
33End of fchmod tests
34
35Init - fchown tests
36Init - fchown, with a bad file descriptor - expect EBADF
37Init - fchown, with an unopened file descriptor - expect EBADF
38Init - open new file: /newfile in read-only mode -- OK
39Init - fchown, with the opened file descriptor - expect EINVAL
40Init - close and remove /newfile
41Init - open new file: /newfile in read-write mode -- OK
42Init - fchown, with the opened file descriptor -- OK
43Init - close and remove /newfile -- OK
44End of fchown tests
45*** END OF TEST Posix file op tests - 01 ***
Note: See TracBrowser for help on using the repository browser.