change log for rtems (2010-07-14)

rtems-vc at rtems.org rtems-vc at rtems.org
Thu Jul 15 00:10:53 UTC 2010


 *joel*:
2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>

	* spprintk/init.c, spprintk/spprintk.doc, spprintk/spprintk.scn: Clean
	up and add test of getchark().

M  1.403  testsuites/sptests/ChangeLog
M    1.7  testsuites/sptests/spprintk/init.c
M    1.2  testsuites/sptests/spprintk/spprintk.doc
M    1.4  testsuites/sptests/spprintk/spprintk.scn

diff -u rtems/testsuites/sptests/ChangeLog:1.402 rtems/testsuites/sptests/ChangeLog:1.403
--- rtems/testsuites/sptests/ChangeLog:1.402	Wed Jul 14 12:03:36 2010
+++ rtems/testsuites/sptests/ChangeLog	Wed Jul 14 18:17:48 2010
@@ -1,5 +1,10 @@
 2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
 
+	* spprintk/init.c, spprintk/spprintk.doc, spprintk/spprintk.scn: Clean
+	up and add test of getchark().
+
+2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
+
 	* spfatal21/Makefile.am: Fix typo.
 
 2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>

diff -u rtems/testsuites/sptests/spprintk/init.c:1.6 rtems/testsuites/sptests/spprintk/init.c:1.7
--- rtems/testsuites/sptests/spprintk/init.c:1.6	Sun Nov 29 21:33:25 2009
+++ rtems/testsuites/sptests/spprintk/init.c	Wed Jul 14 18:17:48 2010
@@ -1,7 +1,7 @@
 /*
- *  Exercise Printk
+ *  Exercise putk, printk, and getchark
  *
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2010.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -12,15 +12,41 @@
  */
 
 #include <tmacros.h>
+#include <rtems/bspIo.h>
 
-rtems_task Init(
-  rtems_task_argument argument
-)
+int test_getchar(void)
 {
-  printk( "\n\n*** TEST PRINTK ***\n" );
+  return 0x35;
+}
+
+void do_getchark(void)
+{
+  int                                sc;
+  BSP_polling_getchar_function_type  poll_char;
+
+  poll_char = BSP_poll_char;
+
+  BSP_poll_char = NULL;
+  
+  putk( "getchark - NULL getchar method - return -1" );
+  sc = getchark();
+  rtems_test_assert( sc == -1 );
+
+  putk( "getchark - test getchar method - returns 0x35" );
+  BSP_poll_char = test_getchar;
+  sc = getchark();
+  rtems_test_assert( sc == 0x35 );
 
-  putk( "This is a test of putk\n" );
+  BSP_poll_char = poll_char;
+}
 
+void do_putk(void)
+{
+  putk( "This is a test of putk" );
+}
+
+void do_printk(void)
+{
   printk( "bad format -- %%q in parentheses (%q)\n" );
 
   printk( "bad format -- %%lq in parentheses (%lq)\n", 0x1234 );
@@ -52,7 +78,21 @@
   printk( "%%-12s of joel -- (%-20s)\n", "joel" );
   printk( "%%-4s of joel -- (%-4s)\n", "joel" );
   printk( "%%c of X -- (%c)\n", 'X' );
+}
+
+rtems_task Init(
+  rtems_task_argument argument
+)
+{
+  printk( "\n\n*** TEST PRINTK ***\n" );
+
+  do_putk();
+  putk("");
+
+  do_printk();
+  putk("");
 
+  do_getchark();
 
   printk( "*** END OF TEST PRINTK ***\n" );
   rtems_test_exit( 0 );

diff -u rtems/testsuites/sptests/spprintk/spprintk.doc:1.1 rtems/testsuites/sptests/spprintk/spprintk.doc:1.2
--- rtems/testsuites/sptests/spprintk/spprintk.doc:1.1	Mon Nov  9 08:25:28 2009
+++ rtems/testsuites/sptests/spprintk/spprintk.doc	Wed Jul 14 18:17:48 2010
@@ -15,8 +15,14 @@
 
 directives:
 
+  putk
   printk
+  getchark
 
 concepts:
 
++ Ensure that putk() is fully exercised and operates as expected.
+
 + Ensure that printk() is fully exercised and operates as expected.
+
++ Ensure that getchark() is fully exercised and operates as expected.

diff -u rtems/testsuites/sptests/spprintk/spprintk.scn:1.3 rtems/testsuites/sptests/spprintk/spprintk.scn:1.4
--- rtems/testsuites/sptests/spprintk/spprintk.scn:1.3	Mon Nov  9 08:30:10 2009
+++ rtems/testsuites/sptests/spprintk/spprintk.scn	Wed Jul 14 18:17:48 2010
@@ -1,6 +1,3 @@
-sparc-rtems4.10-run is /opt/rtems-4.10/bin/sparc-rtems4.10-run
-
-
 *** TEST PRINTK ***
 This is a test of putk
 
@@ -28,4 +25,7 @@
 %-12s of joel -- (joel                )
 %-4s of joel -- (joel)
 %c of X -- (X)
+
+getchark - NULL getchar method - return -1
+getchark - test getchar method - returns 0x35
 *** END OF TEST PRINTK ***


 *joel*:
2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>

	PR 1535/tests
	* malloc04/init.c, malloc04/malloc04.scn: Address issues in test. A mix
	of work by Ralf and Joel.

M  1.203  testsuites/libtests/ChangeLog
M    1.2  testsuites/libtests/malloc04/init.c
M    1.2  testsuites/libtests/malloc04/malloc04.scn

diff -u rtems/testsuites/libtests/ChangeLog:1.202 rtems/testsuites/libtests/ChangeLog:1.203
--- rtems/testsuites/libtests/ChangeLog:1.202	Wed Jul 14 10:59:37 2010
+++ rtems/testsuites/libtests/ChangeLog	Wed Jul 14 18:23:12 2010
@@ -1,5 +1,11 @@
 2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
 
+	PR 1535/tests
+	* malloc04/init.c, malloc04/malloc04.scn: Address issues in test. A mix
+	of work by Ralf and Joel.
+
+2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
+
 	* termios01/init.c, termios01/termios01.scn: Fully exercise tcsetattr.
 
 2010-07-08	Joel Sherrill <joel.sherrill at oarcorp.com>

diff -u rtems/testsuites/libtests/malloc04/init.c:1.1 rtems/testsuites/libtests/malloc04/init.c:1.2
--- rtems/testsuites/libtests/malloc04/init.c:1.1	Thu Jul  8 15:11:48 2010
+++ rtems/testsuites/libtests/malloc04/init.c	Wed Jul 14 18:23:12 2010
@@ -13,6 +13,7 @@
 #include "test_support.h"
 #include <rtems/libcsupport.h>
 #include <rtems/malloc.h>
+#include <errno.h>
 
 char Malloc_Heap[ 128 ] CPU_STRUCTURE_ALIGNMENT;
 int sbrk_count;
@@ -25,12 +26,15 @@
 extern rtems_malloc_sbrk_functions_t  rtems_malloc_sbrk_helpers_table;
 
 size_t offset;
+
 void * sbrk(ptrdiff_t incr)
 {
   void *p = (void *) -1;
 
   printf( "sbrk(%td)\n", incr );
-  if ( offset + incr < sizeof(Malloc_Heap) ) {
+  if ( sbrk_count == -1 ) {
+    p = (void *) (NULL - 2);
+  } else if ( offset + incr < sizeof(Malloc_Heap) ) {
      p = &Malloc_Heap[ offset ];
      offset += incr;
   } else {
@@ -67,6 +71,16 @@
   p3 = malloc(48);
   p4 = malloc(48);
   
+  puts( "Initialize heap with some memory - return address out of heap" );
+  RTEMS_Malloc_Initialize( &Malloc_Heap[1], 64, 64 );
+  offset     = 64;
+  sbrk_count = -1;
+  p1 = malloc( 127 );
+  rtems_test_assert( p1 == (void *) NULL );
+  rtems_test_assert( errno == ENOMEM );
+  
+
+  RTEMS_Malloc_Initialize( Malloc_Heap, 64, 64 );
   puts( "Initialize heap with some unaligned memory" );
   offset     = 65;
   sbrk_count = 0;
@@ -101,7 +115,6 @@
   *RTEMS_Malloc_Heap = Heap_Holder;
   rtems_malloc_sbrk_helpers = NULL;
 
-
   puts( "*** END OF TEST MALLOC 04 ***" );
 
   rtems_test_exit(0);

diff -u rtems/testsuites/libtests/malloc04/malloc04.scn:1.1 rtems/testsuites/libtests/malloc04/malloc04.scn:1.2
--- rtems/testsuites/libtests/malloc04/malloc04.scn:1.1	Thu Jul  8 15:11:48 2010
+++ rtems/testsuites/libtests/malloc04/malloc04.scn	Wed Jul 14 18:23:12 2010
@@ -3,6 +3,9 @@
 sbrk(128)
 sbrk(128)
 sbrk(64)
+Initialize heap with some memory - return address out of heap
+sbrk(128)
+sbrk(-128)
 Initialize heap with some unaligned memory
 sbrk(128)
 sbrk(128)


 *joel*:
2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>

	* Makefile.am, configure.ac: Add new test to exercise
	malloc_get_statistics().
	* malloc05/.cvsignore, malloc05/Makefile.am, malloc05/init.c,
	malloc05/malloc05.doc, malloc05/malloc05.scn: New files.

M  1.204  testsuites/libtests/ChangeLog
M   1.38  testsuites/libtests/Makefile.am
M   1.45  testsuites/libtests/configure.ac
A    1.1  testsuites/libtests/malloc05/.cvsignore
A    1.1  testsuites/libtests/malloc05/Makefile.am
A    1.1  testsuites/libtests/malloc05/init.c
A    1.1  testsuites/libtests/malloc05/malloc05.doc
A    1.1  testsuites/libtests/malloc05/malloc05.scn

diff -u rtems/testsuites/libtests/ChangeLog:1.203 rtems/testsuites/libtests/ChangeLog:1.204
--- rtems/testsuites/libtests/ChangeLog:1.203	Wed Jul 14 18:23:12 2010
+++ rtems/testsuites/libtests/ChangeLog	Wed Jul 14 18:29:45 2010
@@ -1,5 +1,12 @@
 2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
 
+	* Makefile.am, configure.ac: Add new test to exercise
+	malloc_get_statistics().
+	* malloc05/.cvsignore, malloc05/Makefile.am, malloc05/init.c,
+	malloc05/malloc05.doc, malloc05/malloc05.scn: New files.
+
+2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
+
 	PR 1535/tests
 	* malloc04/init.c, malloc04/malloc04.scn: Address issues in test. A mix
 	of work by Ralf and Joel.

diff -u rtems/testsuites/libtests/Makefile.am:1.37 rtems/testsuites/libtests/Makefile.am:1.38
--- rtems/testsuites/libtests/Makefile.am:1.37	Thu Jul  8 15:11:48 2010
+++ rtems/testsuites/libtests/Makefile.am	Wed Jul 14 18:29:45 2010
@@ -7,7 +7,7 @@
 SUBDIRS = POSIX
 
 SUBDIRS += bspcmdline01 cpuuse gxx01 \
-    malloctest malloc02 malloc03 malloc04 heapwalk \
+    malloctest malloc02 malloc03 malloc04 malloc05 heapwalk \
     putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
     termios termios01 termios02 termios03 termios04 termios05 termios06 \
     rtems++ tztest block01 block02 block03 block04 block05 block06 block07 \

diff -u rtems/testsuites/libtests/configure.ac:1.44 rtems/testsuites/libtests/configure.ac:1.45
--- rtems/testsuites/libtests/configure.ac:1.44	Thu Jul  8 15:11:48 2010
+++ rtems/testsuites/libtests/configure.ac	Wed Jul 14 18:29:45 2010
@@ -51,6 +51,7 @@
 malloc02/Makefile
 malloc03/Makefile
 malloc04/Makefile
+malloc05/Makefile
 monitor/Makefile
 monitor02/Makefile
 putenvtest/Makefile

diff -u /dev/null rtems/testsuites/libtests/malloc05/.cvsignore:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/.cvsignore	Wed Jul 14 18:29:45 2010
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in

diff -u /dev/null rtems/testsuites/libtests/malloc05/Makefile.am:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/Makefile.am	Wed Jul 14 18:29:45 2010
@@ -0,0 +1,26 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = malloc05
+malloc05_SOURCES = init.c
+
+dist_rtems_tests_DATA = malloc05.scn
+dist_rtems_tests_DATA += malloc05.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(malloc05_OBJECTS) $(malloc05_LDADD)
+LINK_LIBS = $(malloc05_LDLIBS)
+
+malloc05$(EXEEXT): $(malloc05_OBJECTS) $(malloc05_DEPENDENCIES)
+	@rm -f malloc05$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems/testsuites/libtests/malloc05/init.c:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/init.c	Wed Jul 14 18:29:45 2010
@@ -0,0 +1,49 @@
+/*
+ *  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$
+ */
+
+#include <tmacros.h>
+#include "test_support.h"
+#include <rtems/malloc.h>
+
+rtems_task Init(
+  rtems_task_argument argument
+)
+{
+  int                        sc;
+  rtems_malloc_statistics_t  stats;
+
+  puts( "\n\n*** TEST MALLOC05 ***" );
+
+  puts( "malloc_get_statistics( NULL ) - returns -1" );
+  sc = malloc_get_statistics( NULL );
+  rtems_test_assert( sc == -1 );
+
+  puts( "malloc_get_statistics( &stats ) - returns -0" );
+  sc = malloc_get_statistics( &stats );
+  rtems_test_assert( sc == 0 );
+
+  puts( "*** END OF TEST MALLOC05 ***" );
+
+  rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS             1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */

diff -u /dev/null rtems/testsuites/libtests/malloc05/malloc05.doc:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/malloc05.doc	Wed Jul 14 18:29:45 2010
@@ -0,0 +1,22 @@
+#
+#  $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.
+
+test set name:  malloc05
+
+directives:
+
+  malloc_get_statistics
+
+concepts:
+
++ Fully exercise malloc_get_statistics.

diff -u /dev/null rtems/testsuites/libtests/malloc05/malloc05.scn:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/malloc05.scn	Wed Jul 14 18:29:45 2010
@@ -0,0 +1,4 @@
+*** TEST MALLOC05 ***
+malloc_get_statistics( NULL ) - returns -1
+malloc_get_statistics( &stats ) - returns -0
+*** END OF TEST MALLOC05 ***


 *joel*:
2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>

	* Makefile.am, configure.ac: Add new test to exercise devFS_Show().
	* devfs01/.cvsignore, devfs01/Makefile.am, devfs01/devfs01.doc,
	devfs01/devfs01.scn, devfs01/init.c: New files.

M  1.205  testsuites/libtests/ChangeLog
M   1.39  testsuites/libtests/Makefile.am
M   1.46  testsuites/libtests/configure.ac
A    1.1  testsuites/libtests/devfs01/.cvsignore
A    1.1  testsuites/libtests/devfs01/Makefile.am
A    1.1  testsuites/libtests/devfs01/devfs01.doc
A    1.1  testsuites/libtests/devfs01/devfs01.scn
A    1.1  testsuites/libtests/devfs01/init.c

diff -u rtems/testsuites/libtests/ChangeLog:1.204 rtems/testsuites/libtests/ChangeLog:1.205
--- rtems/testsuites/libtests/ChangeLog:1.204	Wed Jul 14 18:29:45 2010
+++ rtems/testsuites/libtests/ChangeLog	Wed Jul 14 18:53:49 2010
@@ -1,5 +1,11 @@
 2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
 
+	* Makefile.am, configure.ac: Add new test to exercise devFS_Show().
+	* devfs01/.cvsignore, devfs01/Makefile.am, devfs01/devfs01.doc,
+	devfs01/devfs01.scn, devfs01/init.c: New files.
+
+2010-07-14	Joel Sherrill <joel.sherrill at oarcorp.com>
+
 	* Makefile.am, configure.ac: Add new test to exercise
 	malloc_get_statistics().
 	* malloc05/.cvsignore, malloc05/Makefile.am, malloc05/init.c,

diff -u rtems/testsuites/libtests/Makefile.am:1.38 rtems/testsuites/libtests/Makefile.am:1.39
--- rtems/testsuites/libtests/Makefile.am:1.38	Wed Jul 14 18:29:45 2010
+++ rtems/testsuites/libtests/Makefile.am	Wed Jul 14 18:53:49 2010
@@ -6,7 +6,7 @@
 
 SUBDIRS = POSIX
 
-SUBDIRS += bspcmdline01 cpuuse gxx01 \
+SUBDIRS += bspcmdline01 cpuuse devfs01 gxx01 \
     malloctest malloc02 malloc03 malloc04 malloc05 heapwalk \
     putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
     termios termios01 termios02 termios03 termios04 termios05 termios06 \

diff -u rtems/testsuites/libtests/configure.ac:1.45 rtems/testsuites/libtests/configure.ac:1.46
--- rtems/testsuites/libtests/configure.ac:1.45	Wed Jul 14 18:29:45 2010
+++ rtems/testsuites/libtests/configure.ac	Wed Jul 14 18:53:49 2010
@@ -45,6 +45,7 @@
 block10/Makefile
 bspcmdline01/Makefile
 cpuuse/Makefile
+devfs01/Makefile
 gxx01/Makefile
 heapwalk/Makefile
 malloctest/Makefile

diff -u /dev/null rtems/testsuites/libtests/devfs01/.cvsignore:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/devfs01/.cvsignore	Wed Jul 14 18:53:49 2010
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in

diff -u /dev/null rtems/testsuites/libtests/devfs01/Makefile.am:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/devfs01/Makefile.am	Wed Jul 14 18:53:49 2010
@@ -0,0 +1,26 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = devfs01
+devfs01_SOURCES = init.c
+
+dist_rtems_tests_DATA = devfs01.scn
+dist_rtems_tests_DATA += devfs01.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(devfs01_OBJECTS) $(devfs01_LDADD)
+LINK_LIBS = $(devfs01_LDLIBS)
+
+devfs01$(EXEEXT): $(devfs01_OBJECTS) $(devfs01_DEPENDENCIES)
+	@rm -f devfs01$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems/testsuites/libtests/devfs01/devfs01.doc:1.1
--- /dev/null	Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/devfs01/devfs01.doc	Wed Jul 14 18:53:49 2010
@@ -0,0 +1,22 @@
+#
+#  $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.
+
+test set name:  devfs01
+
+directives:
+
+  devFS_Show
+
+concepts:
+
++ Fully exercise devFS_Show

diff -u /dev/null rtems/testsuites/libtests/devfs01/devfs01.scn:1.1
--- /dev/null	Wed Jul 14 19:10:53 2010
+++ rtems/testsuites/libtests/devfs01/devfs01.scn	Wed Jul 14 18:53:49 2010
@@ -0,0 +1,7 @@
+*** TEST DEVFS01 ***
+devFS_Show - OK
+/dev/console_b 0 1
+/dev/console 0 0
+devFS_Show - no device table - EFAULT
+devFS_Show - devices - OK
+*** END OF TEST DEVFS01 ***

diff -u /dev/null rtems/testsuites/libtests/devfs01/init.c:1.1
--- /dev/null	Wed Jul 14 19:10:53 2010
+++ rtems/testsuites/libtests/devfs01/init.c	Wed Jul 14 18:53:49 2010
@@ -0,0 +1,73 @@
+/*
+ *  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$
+ */
+
+#include <tmacros.h>
+#include "test_support.h"
+#include <rtems/devfs.h>
+#include <errno.h>
+
+rtems_task Init(
+  rtems_task_argument argument
+)
+{
+  int                               sc;
+  int                               size;
+  rtems_filesystem_location_info_t *temp_loc;
+  rtems_device_name_t              *device_name_table;
+
+  puts( "\n\n*** TEST DEVFS01 ***" );
+
+  puts( "devFS_Show - OK" );
+  sc = devFS_Show();
+  rtems_test_assert( sc == 0 );
+
+  /* save original node access information */
+  temp_loc = &rtems_filesystem_root;
+  device_name_table = (rtems_device_name_t *)temp_loc->node_access;
+  temp_loc->node_access = NULL;
+
+  puts( "devFS_Show - no device table - EFAULT" );
+  sc = devFS_Show();
+  rtems_test_assert( sc == -1 );
+  rtems_test_assert( errno == EFAULT );
+
+  /* restore node access information */
+  temp_loc->node_access = device_name_table;
+
+  /* save original device table size information */
+  size = rtems_device_table_size;
+  rtems_device_table_size = 0;
+  puts( "devFS_Show - devices - OK" );
+  sc = devFS_Show();
+  rtems_test_assert( sc == 0 );
+
+  /* restore original device table size information */
+  rtems_device_table_size = size;
+  
+  puts( "*** END OF TEST DEVFS01 ***" );
+
+  rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS             1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100714/43cd1275/attachment.html>


More information about the vc mailing list