Changeset 161f54b4 in rtems


Ignore:
Timestamp:
12/28/09 16:43:10 (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
9c4ec8b
Parents:
aea66e87
Message:

2009-12-28 Shrikant Gaikwad <n3oo3n@…>

  • psx13/test.c, psx13/psx13.scn Added new routine PipeTestNull?() to cover the trivial NULL case for pipe function.
Location:
testsuites/psxtests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    raea66e87 r161f54b4  
     12009-12-28      Shrikant Gaikwad <n3oo3n@gmail.com>
     2
     3        * psx13/test.c, psx13/psx13.scn Added new routine PipeTestNull()
     4        to cover the trivial NULL case for pipe function.
     5
    162009-12-08      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/psxtests/Makefile.am

    raea66e87 r161f54b4  
    2626## enabled to support readv and writev.  Hopefully this is a temporary
    2727## situation.
    28 if HAS_NETWORKING
    29 if HAS_POSIX
     28## if NEWLIB
    3029SUBDIRS += psxrdwrv
    31 endif
    32 endif
     30## endif
    3331
    3432DIST_SUBDIRS = $(SUBDIRS) psxfatal_support
  • testsuites/psxtests/psx13/psx13.scn

    raea66e87 r161f54b4  
    99Testing utime().......... Success.
    1010Testing pipe()........... Success.
     11Testing pipe() with NULL........... Failed!!!
    1112Testing fsync().......... Success.
    1213Testing pathconf()....... Success.
  • testsuites/psxtests/psx13/test.c

    raea66e87 r161f54b4  
    4646int UTimeTest(void);
    4747int PipeTest(void);
     48int PipeTestNull(void);
    4849int PathConfTest(void);
    4950int FPathConfTest(void);
     
    454455
    455456  /* assert (retval == TRUE);*/
     457
     458  return(retval);
     459}
     460
     461int PipeTestNull (void)
     462{
     463  int error = 0, retval = FALSE;
     464
     465  error = pipe(NULL);
     466
     467  if ((error == -1) && (errno == ENOSYS))
     468    retval = TRUE;
     469  else
     470    retval = FALSE;
    456471
    457472  return(retval);
     
    655670      printf ("Failed!!!\n");
    656671
     672   printf ("Testing pipe() with NULL........... ");
     673    if (PipeTestNull() == TRUE)
     674      printf ("Success.\n");
     675    else
     676      printf ("Failed!!!\n");
     677
    657678   printf ("Testing fsync().......... ");
    658679    if (FSyncTest() == TRUE)
  • testsuites/psxtests/psxrdwrv/test.c

    raea66e87 r161f54b4  
    11/*
    2  *  Psx13
    3  *
    42 *  This test exercises the following routines:
    53 *
    6  *  readv - implemented
    7  *  writev - implemented
    8  *
    9  *
    10  *  COPYRIGHT (c) 1989-2007.
     4 *    + readv
     5 *    + writev
     6 *
     7 *  COPYRIGHT (c) 1989-2009.
    118 *  On-Line Applications Research Corporation (OAR).
    129 *
     
    205202   * Open the file for the rest of the tests
    206203   */
    207   fp = fopen(TESTFILE, "wt");
     204  fp = fopen(TESTFILE, "w+");
    208205  if ( fp == NULL ) {
    209206    printf( "fopen for error 2: %d=%s\n", errno, strerror(errno));
     
    328325  rc = writev(fd, vec, 3);
    329326  if ( (rc != -1) || (errno != EINVAL) ) {
    330     printf( "writev error 7: %d=%s\n", errno, strerror(errno) );
     327    printf( "writev error 7: rc=%d %d=%s\n", rc, errno, strerror(errno) );
    331328    fclose(fp);
    332329    return FALSE;
     
    341338  rc = readv(fd, vec, 2);
    342339  if ( (rc != -1) || (errno != EINVAL) ) {
    343     printf( "readv error 7: %d=%s\n", errno, strerror(errno) );
     340    printf( "read error 7: rc=%d %d=%s\n", rc, errno, strerror(errno) );
    344341    fclose(fp);
    345342    return FALSE;
Note: See TracChangeset for help on using the changeset viewer.