Changeset b05cc32 in rtems


Ignore:
Timestamp:
Jul 13, 2010, 9:13:13 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
dd38f3d9
Parents:
5ec75ca
Message:

2010-07-12 Bharath Suri <bharath.s.jois@…>

PR 1613/testing

  • psxfchx01/init.c, psxfchx01/Makefile.am, psxfchx01/.cvsignore, psxfchx01/psxfchx01.doc, psxfchx01/psxfchx01.scn: New tests. Improves coverage of fchdir, fchmod, fchown directives.
  • configure.ac, Makefile.am: Changes to accommodate new test.
  • psxstat/test.c, psxstat/psxstat.scn: Added new test case to test statvfs routine under libcsupport.
Location:
testsuites/psxtests
Files:
5 added
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r5ec75ca rb05cc32  
     12010-07-12      Bharath Suri <bharath.s.jois@gmail.com>
     2
     3        PR 1613/testing
     4        * psxfchx01/init.c, psxfchx01/Makefile.am, psxfchx01/.cvsignore,
     5        psxfchx01/psxfchx01.doc, psxfchx01/psxfchx01.scn: New
     6        tests. Improves coverage of fchdir, fchmod, fchown directives.
     7        * configure.ac, Makefile.am: Changes to accommodate new test.
     8        * psxstat/test.c, psxstat/psxstat.scn: Added new test case to test
     9        statvfs routine under libcsupport.
     10
    1112010-07-09      Bharath Suri <bharath.s.jois@gmail.com>
    212
  • testsuites/psxtests/Makefile.am

    r5ec75ca rb05cc32  
    2222SUBDIRS += psxfile01 psxfile02 psxfilelock01 psxgetrusage01 psxid01 \
    2323    psximfs01 psxreaddir psxstat psxmount psx13 psxchroot01 psxpasswd01 \
    24     psxpasswd02 psxpipe01 psxtimes01
     24    psxpasswd02 psxpipe01 psxtimes01 psxfchx01
    2525
    2626## Until sys/uio.h is moved to libcsupport, we have to have networking
  • testsuites/psxtests/configure.ac

    r5ec75ca rb05cc32  
    8787psxfatal01/Makefile
    8888psxfatal02/Makefile
     89psxfchx01/Makefile
    8990psxfile01/Makefile
    9091psxfile02/Makefile
  • testsuites/psxtests/psxstat/psxstat.scn

    r5ec75ca rb05cc32  
     1
    12*** STAT TEST 01 ***
    23--->Current Time:  - rtems_clock_get_tod - 09:00:00   12/31/1988
     
    17041705...st_blksize 0
    17051706...st_blocks  0
     1707statvfs, with invalid path - expect EFAULT
     1708create /tmp -- OK
     1709statvfs, with valid path - expect ENOTSUP
     1710statvfs tested!
    17061711
    17071712
  • testsuites/psxtests/psxstat/test.c

    r5ec75ca rb05cc32  
    775775}
    776776
     777void test_statvfs( void )
     778{
     779
     780  int status = 0;
     781  struct statvfs stat;
     782
     783  puts( "statvfs, with invalid path - expect EFAULT" );
     784  status = statvfs( NULL , &stat );
     785  rtems_test_assert( status == -1 );
     786  rtems_test_assert( errno == EFAULT );
     787
     788  puts( "create /tmp -- OK" );
     789  status = mkdir( "/tmp", 0777 );
     790  rtems_test_assert( status == 0 );
     791
     792  puts( "statvfs, with valid path - expect ENOTSUP" );
     793  status = statvfs( "/tmp", &stat );
     794  rtems_test_assert( status == -1 );
     795  rtems_test_assert( errno == ENOTSUP );
     796
     797  puts( "statvfs tested!" );
     798}
     799
    777800/*
    778801 *  main entry point to the test
     
    903926  lchown_multiple_files( SymLinks );
    904927
     928  test_statvfs();
     929
    905930  puts( "\n\n*** END OF STAT TEST 01 ***" );
    906931  rtems_test_exit(0);
Note: See TracChangeset for help on using the changeset viewer.