<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-07-02)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-02 Joel Sherrill <joel.sherrill@oarcorp.com>

        * psxfile01/test_cat.c: Does not need posix specific macros.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.281&r2=text&tr2=1.282&diff_format=h">M</a></td><td width='1%'>1.282</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfile01/test_cat.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/psxtests/psxfile01/test_cat.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.281 rtems/testsuites/psxtests/ChangeLog:1.282
--- rtems/testsuites/psxtests/ChangeLog:1.281   Thu Jul  1 16:15:07 2010
+++ rtems/testsuites/psxtests/ChangeLog Fri Jul  2 12:20:54 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-07-02    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * psxfile01/test_cat.c: Does not need posix specific macros.
+
</font> 2010-07-01        Joel Sherrill <joel.sherrilL@OARcorp.com>
 
        * psxfile01/Makefile.am, psxfile01/psxfile01.scn, psxfile01/test.c:

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/test_cat.c:1.4 rtems/testsuites/psxtests/psxfile01/test_cat.c:1.5
--- rtems/testsuites/psxtests/psxfile01/test_cat.c:1.4  Tue Dec  8 11:52:53 2009
+++ rtems/testsuites/psxtests/psxfile01/test_cat.c      Fri Jul  2 12:20:54 2010
</font><font color='#997700'>@@ -23,7 +23,7 @@
</font> #include <string.h>
 #include <ctype.h>
 
<font color='#880000'>-#include <pmacros.h>
</font><font color='#000088'>+#include <tmacros.h>
</font> 
 /*
  *  test_cat routine
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-02 Bharath Suri <bharath.s.jois@gmail.com>

        PR 1600/testing
        * spfifo04/init.c, spfifo04/spfifo04.doc, spfifo04/spfifo04.scn,
        spfifo04/Makefile.am: New files to improve coverage on fifo/pipe
        routines
        * Makefile.am, configure.ac: Add new test.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.390&r2=text&tr2=1.391&diff_format=h">M</a></td><td width='1%'>1.391</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/Makefile.am.diff?r1=text&tr1=1.93&r2=text&tr2=1.94&diff_format=h">M</a></td><td width='1%'>1.94</td><td width='100%'>testsuites/sptests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/configure.ac.diff?r1=text&tr1=1.98&r2=text&tr2=1.99&diff_format=h">M</a></td><td width='1%'>1.99</td><td width='100%'>testsuites/sptests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfifo04/.cvsignore.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>testsuites/sptests/spfifo04/.cvsignore</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfifo04/Makefile.am.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/sptests/spfifo04/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfifo04/init.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/sptests/spfifo04/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfifo04/spfifo04.doc.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/sptests/spfifo04/spfifo04.doc</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfifo04/spfifo04.scn.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>testsuites/sptests/spfifo04/spfifo04.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.390 rtems/testsuites/sptests/ChangeLog:1.391
--- rtems/testsuites/sptests/ChangeLog:1.390    Thu Jul  1 12:00:33 2010
+++ rtems/testsuites/sptests/ChangeLog  Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2010-07-02    Bharath Suri <bharath.s.jois@gmail.com>
+
+       PR 1600/testing
+       * spfifo04/init.c, spfifo04/spfifo04.doc, spfifo04/spfifo04.scn,
+       spfifo04/Makefile.am: New files to improve coverage on fifo/pipe
+       routines
+       * Makefile.am, configure.ac: Add new test.
+
</font> 2010-07-01        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * sp68/init.c: Add alignment to region_area. Fix spelling.

<font color='#006600'>diff -u rtems/testsuites/sptests/Makefile.am:1.93 rtems/testsuites/sptests/Makefile.am:1.94
--- rtems/testsuites/sptests/Makefile.am:1.93   Mon Jun 28 09:03:45 2010
+++ rtems/testsuites/sptests/Makefile.am        Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -21,7 +21,7 @@
</font>     spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
     spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 spfatal14 \
     spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 \
<font color='#880000'>-    spfifo01 spfifo02 spfifo03 \
</font><font color='#000088'>+    spfifo01 spfifo02 spfifo03 spfifo04 \
</font>     spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \
     spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \
     spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \

<font color='#006600'>diff -u rtems/testsuites/sptests/configure.ac:1.98 rtems/testsuites/sptests/configure.ac:1.99
--- rtems/testsuites/sptests/configure.ac:1.98  Mon Jun 28 09:03:45 2010
+++ rtems/testsuites/sptests/configure.ac       Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -125,6 +125,7 @@
</font> spfifo01/Makefile
 spfifo02/Makefile
 spfifo03/Makefile
<font color='#000088'>+spfifo04/Makefile
</font> spintrcritical01/Makefile
 spintrcritical02/Makefile
 spintrcritical03/Makefile

<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfifo04/.cvsignore:1.3
--- /dev/null   Fri Jul  2 13:11:57 2010
+++ rtems/testsuites/sptests/spfifo04/.cvsignore        Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfifo04/Makefile.am:1.4
--- /dev/null   Fri Jul  2 13:11:57 2010
+++ rtems/testsuites/sptests/spfifo04/Makefile.am       Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spfifo04
+spfifo04_SOURCES = init.c
+
+dist_rtems_tests_DATA = spfifo04.scn
+dist_rtems_tests_DATA += spfifo04.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(spfifo04_OBJECTS) $(spfifo04_LDADD)
+LINK_LIBS = $(spfifo04_LDLIBS)
+
+spfifo04$(EXEEXT): $(spfifo04_OBJECTS) $(spfifo04_DEPENDENCIES)
+       @rm -f spfifo04$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfifo04/init.c:1.5
--- /dev/null   Fri Jul  2 13:11:57 2010
+++ rtems/testsuites/sptests/spfifo04/init.c    Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -0,0 +1,109 @@
</font><font color='#000088'>+/*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+/* Includes */
+#include <bsp.h>
+#include <tmacros.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <errno.h>
+
+#include <rtems.h>
+#include <rtems/libio.h>
+
+#define SEND_RCV_BUFSIZ 12
+
+rtems_task Init(
+  rtems_task_argument not_used
+)
+{
+  int fd = -1;
+  int status = -1;
+  off_t offset = 4;
+  int pipe_length = -1;
+  int flag = 1;
+
+  puts( "\n\n*** TEST PIPE/FIFO - 04 ***" );
+
+  puts( "Init - Creating /fifo" );
+  status = mkfifo( "/fifo", 0777 );
+  rtems_test_assert( status == 0 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - Opening /fifo in readonly, non-blocking mode" );
+  fd = open( "/fifo", O_RDONLY | O_NONBLOCK );
+  rtems_test_assert( fd != -1 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - Attempt to lseek on fifo -- Expected ESPIPE" );
+  offset = lseek( fd, offset, SEEK_CUR );
+  rtems_test_assert( offset == -1 );
+  rtems_test_assert( errno == ESPIPE );
+
+  puts( "Init - ioctl: FIONBIO -- Expected EFAULT" );
+  status = ioctl( fd, FIONBIO, NULL );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EFAULT );
+
+  puts( "Init - ioctl: FIONBIO -- OK" );
+  status = ioctl( fd, FIONBIO, &flag );
+  rtems_test_assert( status == 0 );
+<span style="background-color: #FF0000"> </span>
+  flag = 0;
+  puts( "Init - ioctl: FIONBIO -- OK" );
+  status = ioctl( fd, FIONBIO, &flag );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - ioctl: Dummy Command -- Expected EINVAL" );
+  status = ioctl( fd, -1, NULL );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EINVAL );
+
+  puts( "Init - ioctl: FIONREAD -- Expected EFAULT" );
+  status = ioctl( fd, FIONREAD, NULL );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EFAULT );
+
+  puts( "Init - ioctl: FIONREAD -- OK" );
+  status = ioctl( fd, FIONREAD, &pipe_length );
+  rtems_test_assert( status == 0 );
+  rtems_test_assert( pipe_length == 0 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - closing /fifo" );
+  status = close( fd );
+  rtems_test_assert( status == 0 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - removing /fifo" );
+  status = unlink( "/fifo" );
+  rtems_test_assert( status == 0 );
+
+  puts( "*** END OF TEST PIPE/FIFO - 04 ***" );
+  rtems_test_exit(0);
+}
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 6
+
+#define CONFIGURE_MAXIMUM_TASKS 3
+#define CONFIGURE_MAXIMUM_BARRIERS 1
+#define CONFIGURE_MAXIMUM_FIFOS 1
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_FIFOS_ENABLED
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfifo04/spfifo04.doc:1.4
--- /dev/null   Fri Jul  2 13:11:57 2010
+++ rtems/testsuites/sptests/spfifo04/spfifo04.doc      Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  COPYRIGHT (c) 1989-2010.
+#  On-Line Applications Research Corporation (OAR).
+#
+#  The license and distribution terms for this file may be
+#  found in the file LICENSE in this distribution or at
+#  http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+directives:
+
++ pipe_lseek
++ pipe_ioctl
+
+concepts:
+
++ exercise pipe_lseek completely
++ exercise pipe_ioctl completely
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfifo04/spfifo04.scn:1.3
--- /dev/null   Fri Jul  2 13:11:57 2010
+++ rtems/testsuites/sptests/spfifo04/spfifo04.scn      Fri Jul  2 13:07:12 2010
</font><font color='#997700'>@@ -0,0 +1,13 @@
</font><font color='#000088'>+*** TEST PIPE/FIFO - 04 ***
+Init - Creating /fifo
+Init - Opening /fifo in readonly, non-blocking mode
+Init - Attempt to lseek on fifo -- Expected ESPIPE
+Init - ioctl: FIONBIO -- Expected EFAULT
+Init - ioctl: FIONBIO -- OK
+Init - ioctl: FIONBIO -- OK
+Init - ioctl: Dummy Command -- Expected EINVAL
+Init - ioctl: FIONREAD -- Expected EFAULT
+Init - ioctl: FIONREAD -- OK
+Init - closing /fifo
+Init - removing /fifo
+*** END OF TEST PIPE/FIFO - 04 ***
</font></pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>