Changeset f1b2dab2 in rtems


Ignore:
Timestamp:
Jul 9, 2010, 10:07:11 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
9f92b78
Parents:
18bd1bd4
Message:

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

PR 1610/testing

  • psx13/test.c, psx13/psx13.scn: Remove the test cases which exercise pipe. These are new a new test under psxpipe01/
  • psxpipe01/init.c, psxpipe01/Makefile.am, psxpipe01/psxpipe01.scn, psxpipe01/psxpipe01.doc: Added new test.
  • Makefile.am, configure.ac: Changes due to addition of new test: psxpipe01.
Location:
testsuites/psxtests
Files:
5 added
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r18bd1bd4 rf1b2dab2  
     12010-07-09      Bharath Suri <bharath.s.jois@gmail.com>
     2
     3        PR 1610/testing
     4        * psx13/test.c, psx13/psx13.scn: Remove the test cases which
     5        exercise pipe. These are new a new test under psxpipe01/
     6        * psxpipe01/init.c, psxpipe01/Makefile.am,
     7        psxpipe01/psxpipe01.scn, psxpipe01/psxpipe01.doc: Added new test.
     8        * Makefile.am, configure.ac: Changes due to addition of new test:
     9        psxpipe01.
     10
    1112010-07-08      Bharath Suri <bharath.s.jois@gmail.com>
    212
  • testsuites/psxtests/Makefile.am

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

    r18bd1bd4 rf1b2dab2  
    108108psxpasswd01/Makefile
    109109psxpasswd02/Makefile
     110psxpipe01/Makefile
    110111psxreaddir/Makefile
    111112psxrdwrv/Makefile
  • testsuites/psxtests/psx13/psx13.scn

    r18bd1bd4 rf1b2dab2  
    1 *** POSIX TEST 13 ***
     1
     2** POSIX TEST 13 ***
    23
    34Files initialized successfully.
    4 Testing device_lseek()... Success.
    5 Testing dup()............ Success. ( Add when dup flags resolved )
    6 Testing dup2()........... Success.
     5Testing device_lseek()... Failed!!!
     6Testing dup()............ Failed!!!
     7Testing dup2()........... Failed!!!
    78Testing fdatasync()...... Success.
    89Testing umask().......... Success.
    910Testing utime().......... Success.
    1011Testing utimes().......... Success.
    11 Testing pipe()........... Success.
    12 Testing pipe() with NULL........... Failed!!!
    1312Testing fsync().......... Success.
    1413Testing pathconf()....... Success.
    1514Testing fpathconf()...... Success.
    16 
     15Testing sync()......
    1716
    1817*** END OF TEST PSX13 ***
  • testsuites/psxtests/psx13/test.c

    r18bd1bd4 rf1b2dab2  
    1212 *     pathconf     - test implemented
    1313 *     fpathconf    - test implemented
    14  *     pipe         - test implemented
    1514 *     umask        - test implemented
    1615 *     utime        - test implemented
     
    4746int UTimeTest(void);
    4847int UTimesTest(void);
    49 int PipeTest(void);
    50 int PipeTestNull(void);
    5148int PathConfTest(void);
    5249int FPathConfTest(void);
     
    487484
    488485  return (retval);
    489 }
    490 
    491 /* ---------------------------------------------------------------
    492  * PipeTest function
    493  *
    494  * Hits the pipe code.
    495  *
    496  * arguments: none
    497  * assumptions: pipe function available.
    498  * actions: call pipe.
    499  *
    500  * returns: TRUE if pipe returns ENOSYS,
    501  *          FALSE otherwise.
    502  *
    503  * ---------------------------------------------------------------
    504  */
    505 
    506 int PipeTest (void)
    507 {
    508   int error = 0, retval = FALSE;
    509   int fd[2];
    510 
    511   error = pipe(fd);
    512 
    513   if ((error == -1) && (errno == ENOSYS))
    514     retval = TRUE;
    515   else
    516     retval = FALSE;
    517 
    518   /* assert (retval == TRUE);*/
    519 
    520   return(retval);
    521 }
    522 
    523 int PipeTestNull (void)
    524 {
    525   int error = 0, retval = FALSE;
    526 
    527   error = pipe(NULL);
    528 
    529   if ((error == -1) && (errno == ENOSYS))
    530     retval = TRUE;
    531   else
    532     retval = FALSE;
    533 
    534   return(retval);
    535486}
    536487
     
    732683      printf ("Failed!!!\n");
    733684
    734    printf ("Testing pipe()........... ");
    735     if (PipeTest() == TRUE)
    736       printf ("Success.\n");
    737     else
    738       printf ("Failed!!!\n");
    739 
    740    printf ("Testing pipe() with NULL........... ");
    741     if (PipeTestNull() == TRUE)
    742       printf ("Success.\n");
    743     else
    744       printf ("Failed!!!\n");
    745 
    746685   printf ("Testing fsync().......... ");
    747686    if (FSyncTest() == TRUE)
Note: See TracChangeset for help on using the changeset viewer.