Changeset 50e4a1b in rtems


Ignore:
Timestamp:
Jul 22, 2011, 8:23:21 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
5eda9a4
Parents:
98f64b0f
Message:

2011-07-22 Joel Sherrill <joel.sherrill@…>

PR 1839/filesystem

  • psxfchx01/init.c, psxfchx01/psxfchx01.scn, psxfile01/psxfile01.scn, psxfile01/test.c: Update test to reflect new status codes.
Location:
testsuites/psxtests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r98f64b0f r50e4a1b  
     12011-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1839/filesystem
     4        * psxfchx01/init.c, psxfchx01/psxfchx01.scn, psxfile01/psxfile01.scn,
     5        psxfile01/test.c: Update test to reflect new status codes.
     6
    172011-07-21      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • testsuites/psxtests/psxfchx01/init.c

    r98f64b0f r50e4a1b  
    5151  rtems_test_assert( fd != -1 );
    5252
    53   puts( "Init - fchdir on the file descriptor - expect EINVAL" );
    54   status = fchdir( fd );
    55   rtems_test_assert( status == -1 );
    56   rtems_test_assert( errno == EINVAL );
     53  puts( "Init - fchdir on the file descriptor - expect ENOTDIR" );
     54  status = fchdir( fd );
     55  rtems_test_assert( status == -1 );
     56  rtems_test_assert( errno == ENOTDIR );
    5757
    5858  puts( "Init - closing /newfile -- OK" );
  • testsuites/psxtests/psxfchx01/psxfchx01.scn

    r98f64b0f r50e4a1b  
    44Init - Attempt fchdir with bad file descriptor - expect EBADF
    55Init - opening /newfile in write-mode -- OK
    6 Init - fchdir on the file descriptor - expect EINVAL
     6Init - fchdir on the file descriptor - expect ENOTDIR
    77Init - closing /newfile -- OK
    88Init - removing /newfile -- OK
  • testsuites/psxtests/psxfile01/psxfile01.scn

    r98f64b0f r50e4a1b  
    1515....mtime = Fri Jan  1 00:00:00 1988
    1616....ctime = Fri Jan  1 00:00:00 1988
    17 ....st_blksize 0
     17....st_blksize 80
    1818....st_blocks  0
    1919
     
    5656open /tmp/bha in write only mode -- OK
    5757attempt fcntl on opened file -- OK
    58 attempt to read from /tmp/bha - expect EINVAL
     58attempt to read from /tmp/bha - expect EBADF
    5959closing and unlinking /tmp/bha
    6060open /tmp/bha in read only mode -- OK
    61 attempt to read from /tmp/bha - expect EINVAL
     61attempt to read from /tmp/bha - expect EBADF
    6262closing and unlinking /tmp/bha
    6363attempt to read from an unopened filedes - expect EBADF
     
    9494....mtime = Sat Dec 31 09:00:00 1988
    9595....ctime = Sat Dec 31 09:00:00 1988
    96 ....st_blksize 0
     96....st_blksize 80
    9797....st_blocks  0
    9898unlink /tmp/joel
     
    127127....mtime = Sat Dec 31 09:00:00 1988
    128128....ctime = Sat Dec 31 09:00:00 1988
    129 ....st_blksize 0
     129....st_blksize 80
    130130....st_blocks  0
    131131stat of /tmp/j
     
    140140....mtime = Fri Jan  1 00:00:00 1988
    141141....ctime = Fri Jan  1 00:00:00 1988
    142 ....st_blksize 0
     142....st_blksize 80
    143143....st_blocks  0
    144144fopen of /tmp/j
     
    158158....mtime = Sat Dec 31 09:00:00 1988
    159159....ctime = Sat Dec 31 09:00:00 1988
    160 ....st_blksize 0
     160....st_blksize 80
    161161....st_blocks  0
    162162This is call 1 to fprintf
     
    174174....mtime = Sat Dec 31 09:00:00 1988
    175175....ctime = Sat Dec 31 09:00:00 1988
    176 ....st_blksize 0
     176....st_blksize 80
    177177....st_blocks  0
    178178*************** Dump of Entire IMFS ***************
     
    181181........console (device 0, 0)
    182182........tty/
    183 ............S3 (device 128, 255)
     183............S3 (device 255, 128)
    184184........test_console (device 0, 0)
    185185....etc/
     
    204204....mtime = Sat Dec 31 09:00:00 1988
    205205....ctime = Sat Dec 31 09:00:00 1988
    206 ....st_blksize 0
     206....st_blksize 80
    207207....st_blocks  0
    208208*************** Dump of Entire IMFS ***************
     
    211211........console (device 0, 0)
    212212........tty/
    213 ............S3 (device 128, 255)
     213............S3 (device 255, 128)
    214214........test_console (device 0, 0)
    215215....etc/
     
    232232........console (device 0, 0)
    233233........tty/
    234 ............S3 (device 128, 255)
     234............S3 (device 255, 128)
    235235........test_console (device 0, 0)
    236236....etc/
  • testsuites/psxtests/psxfile01/test.c

    r98f64b0f r50e4a1b  
    385385  rtems_test_assert( status == 0 );
    386386
    387   puts( "attempt to read from /tmp/bha - expect EINVAL" );
     387  puts( "attempt to read from /tmp/bha - expect EBADF" );
    388388  status = read( fd, buffer, 10 );
    389389  rtems_test_assert( status == -1 );
    390   rtems_test_assert( errno == EINVAL );
     390  rtems_test_assert( errno == EBADF );
    391391
    392392  puts( "closing and unlinking /tmp/bha" );
     
    399399  rtems_test_assert( fd != -1 );
    400400 
    401   puts( "attempt to read from /tmp/bha - expect EINVAL" );
     401  puts( "attempt to read from /tmp/bha - expect EBADF" );
    402402  status = write( fd, buffer, 10 );
    403403  rtems_test_assert( status == -1 );
    404   rtems_test_assert( errno == EINVAL );
     404  rtems_test_assert( errno == EBADF );
    405405
    406406  puts( "closing and unlinking /tmp/bha" );
Note: See TracChangeset for help on using the changeset viewer.