summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfifo02/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-01-07 18:01:55 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-01-07 18:01:55 -0600
commitf3f3049824f4d10e053d8182c089eb64419e8487 (patch)
tree0b76ab60ade39cbc0930b27a9467cbbc32037808 /testsuites/sptests/spfifo02/init.c
parentfsdosfsformat01.doc: Add contents (diff)
downloadrtems-f3f3049824f4d10e053d8182c089eb64419e8487.tar.bz2
spfifo02: Clean up output
Diffstat (limited to 'testsuites/sptests/spfifo02/init.c')
-rw-r--r--testsuites/sptests/spfifo02/init.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/testsuites/sptests/spfifo02/init.c b/testsuites/sptests/spfifo02/init.c
index 33c1a7910c..89d08ba9a7 100644
--- a/testsuites/sptests/spfifo02/init.c
+++ b/testsuites/sptests/spfifo02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2012.
+ * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -124,7 +124,7 @@ void open_fifo(int expected, int flags)
int fd;
fd = open("/fifo01", flags);
- printf( "status=%d errno=%d/(%s)\n", fd, errno, strerror(errno) );
+ printf( "expect status=%d errno=%d/(%s)\n", fd, errno, strerror(errno) );
if ( expected ) {
rtems_test_assert(fd == -1);
rtems_test_assert(errno == expected);
@@ -142,7 +142,7 @@ rtems_task Init(
int num_opens = 0;
int index = 0;
- puts( "\n\n*** TEST FIFO 08 ***" );
+ puts( "\n\n*** TEST FIFO 02 ***" );
puts( "Creating all barriers" );
create_all_barriers();
@@ -188,11 +188,13 @@ rtems_task Init(
++num_opens;
puts("\nMultiple opens\n");
- for(index = 0; index < NUM_OPEN_REQ - num_opens; ++index) {
+ index = 0;
+ do {
- open_fifo(0, O_RDONLY | O_NONBLOCK);
printf("%d... ", index+1);
- }
+ open_fifo(0, O_RDONLY | O_NONBLOCK);
+ ++index;
+ } while ( index < NUM_OPEN_REQ - num_opens );
puts( "*** END OF TEST FIFO 08 ***" );