Changeset f3f30498 in rtems


Ignore:
Timestamp:
Jan 8, 2014, 12:01:55 AM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
bc55e4f
Parents:
23d53e8a
Message:

spfifo02: Clean up output

Location:
testsuites/sptests/spfifo02
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spfifo02/init.c

    r23d53e8a rf3f30498  
    11/*
    2  *  COPYRIGHT (c) 1989-2012.
     2 *  COPYRIGHT (c) 1989-2014.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    125125
    126126  fd = open("/fifo01", flags);
    127   printf( "status=%d errno=%d/(%s)\n", fd, errno, strerror(errno) );
     127  printf( "expect status=%d errno=%d/(%s)\n", fd, errno, strerror(errno) );
    128128  if ( expected ) {
    129129    rtems_test_assert(fd == -1);
     
    143143  int index = 0;
    144144
    145   puts( "\n\n*** TEST FIFO 08 ***" );
     145  puts( "\n\n*** TEST FIFO 02 ***" );
    146146
    147147  puts( "Creating all barriers" );
     
    189189
    190190  puts("\nMultiple opens\n");
    191   for(index = 0; index < NUM_OPEN_REQ - num_opens; ++index) {
    192 
     191  index = 0;
     192  do {
     193
     194    printf("%d... ", index+1);
    193195    open_fifo(0, O_RDONLY | O_NONBLOCK);
    194     printf("%d... ", index+1);
    195   }
     196    ++index;
     197  } while ( index < NUM_OPEN_REQ - num_opens );
    196198
    197199  puts( "*** END OF TEST FIFO 08 ***" );
  • testsuites/sptests/spfifo02/spfifo02.scn

    r23d53e8a rf3f30498  
    1 XXX fill in with test output
     1*** TEST FIFO 02 ***
     2Creating all barriers
     33 Barriers created
     4Creating all semaphores
     54 Semaphores created
     6Creating FIFO
     7Opening FIFO.. expect ENOMEM (semaphore for pipe could not be created)
     8expect status=-1 errno=12/(Not enough space)
     9Deleting semaphore id=0x1a010008
     10Opening FIFO.. expect ENOMEM since no memory is available
     11expect status=-1 errno=12/(Not enough space)
     12Opening FIFO.. expect ENOMEM (barrier-1 for pipe could not be created)
     13expect status=-1 errno=12/(Not enough space)
     14Deleting barrier id=0x52010002
     15Opening FIFO.. expect ENOMEM (barrier-2 for pipe could not be created
     16expect status=-1 errno=12/(Not enough space)
     17Deleting barrier id=0x52010001
     18Opening FIFO.. expect ENOMEM (semaphore-1 for pipe could not be created
     19expect status=-1 errno=12/(Not enough space)
     20Deleting semaphore id=0x1a010007
     21Opening FIFO in RDWR mode. Expect OK
     22expect status=3 errno=12/(Not enough space)
     23Opening FIFO in non blocking RDONLY mode. Expect OK
     24expect status=3 errno=12/(Not enough space)
     25Opening FIFO in non blocking WRONLY mode. Expect ENXIO
     26expect status=-1 errno=6/(No such device or address)
     27
     28Multiple opens
     29
     301... expect status=3 errno=6/(No such device or address)
     312... expect status=3 errno=6/(No such device or address)
     323... expect status=3 errno=6/(No such device or address)
     334... expect status=3 errno=6/(No such device or address)
     345... expect status=3 errno=6/(No such device or address)
     356... expect status=3 errno=6/(No such device or address)
     367... expect status=3 errno=6/(No such device or address)
     378... expect status=3 errno=6/(No such device or address)
     389... expect status=3 errno=6/(No such device or address)
     3910... expect status=3 errno=6/(No such device or address)
     4011... expect status=3 errno=6/(No such device or address)
     4112... expect status=3 errno=6/(No such device or address)
     4213... expect status=3 errno=6/(No such device or address)
     4314... expect status=3 errno=6/(No such device or address)
     4415... expect status=3 errno=6/(No such device or address)
     4516... expect status=3 errno=6/(No such device or address)
     4617... expect status=3 errno=6/(No such device or address)
     4718... expect status=3 errno=6/(No such device or address)
     4819... expect status=3 errno=6/(No such device or address)
     4920... expect status=3 errno=6/(No such device or address)
     5021... expect status=3 errno=6/(No such device or address)
     5122... expect status=3 errno=6/(No such device or address)
     5223... expect status=3 errno=6/(No such device or address)
     53*** END OF TEST FIFO 08 ***
Note: See TracChangeset for help on using the changeset viewer.