Test Output |
***********************************************************************
/tset/POSIX.os/ioprim/fcntl_X/T.fcntl_X 1 Failed
Test Description:
On a call to fcntl(fildes, F_GETFL), the file access modes and status
flags O_RDONLY, O_WRONLY, O_RDWR, O_NONBLOCK, O_APPEND and O_SYNC are
returned for the file description associated with fildes.
Test Strategy:
FOR various combinations of file status flags:
OPEN file with (O_CREAT | status_flags)
VERIFY fcntl(fd, F_GETFL) returns status_flags
Test Information:
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 02, file was opened with 0202
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 05, file was opened with 0205
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 011, file was opened with 0211
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 016, file was opened with 0216
***********************************************************************
***********************************************************************
*
/tset/POSIX.os/ioprim/fcntl_X/T.fcntl_X 2 Failed
Test Description:
When flags contains the current status flags for the file description
associated with fildes and the O_SYNC flag is not set in flags, then a
successful call to fcntl(fildes, F_SETFL, flags|O_SYNC) sets the
O_SYNC flag for the file description.
Test Strategy:
FOR various combinations of file status flags with O_SYNC clear:
OPEN file with (O_CREAT | status_flags)
CALL fcntl(fd, F_SETFL, status_flags|O_SYNC)
VERIFY fcntl(fd, F_GETFL) returns status_flags|O_SYNC
Test Information:
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 02, flags had been set to 0202
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 05, flags had been set to 0205
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 011, flags had been set to 0211
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 016, flags had been set to 0216
|