change log for rtems (2010-07-27)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Jul 27 21:11:50 UTC 2010


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

	* psxobj01/Makefile.am, psxobj01/init.c, psxobj01/psxobj01.scn: Add
	test for runnign out of workspace when setting object name as string.

M  1.299  testsuites/psxtests/ChangeLog
M    1.4  testsuites/psxtests/psxobj01/Makefile.am
M    1.2  testsuites/psxtests/psxobj01/init.c
M    1.2  testsuites/psxtests/psxobj01/psxobj01.scn

diff -u rtems/testsuites/psxtests/ChangeLog:1.298 rtems/testsuites/psxtests/ChangeLog:1.299
--- rtems/testsuites/psxtests/ChangeLog:1.298	Tue Jul 27 11:38:07 2010
+++ rtems/testsuites/psxtests/ChangeLog	Tue Jul 27 15:16:23 2010
@@ -1,3 +1,8 @@
+2010-07-27	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* psxobj01/Makefile.am, psxobj01/init.c, psxobj01/psxobj01.scn: Add
+	test for runnign out of workspace when setting object name as string.
+
 2010-07-27	Vinu Rajashekhar <vinutheraj at gmail.com>
 
 	PR 1629/cpukit

diff -u rtems/testsuites/psxtests/psxobj01/Makefile.am:1.3 rtems/testsuites/psxtests/psxobj01/Makefile.am:1.4
--- rtems/testsuites/psxtests/psxobj01/Makefile.am:1.3	Wed Jun 23 17:49:58 2010
+++ rtems/testsuites/psxtests/psxobj01/Makefile.am	Tue Jul 27 15:16:23 2010
@@ -5,7 +5,7 @@
 MANAGERS = all
 
 rtems_tests_PROGRAMS = psxobj01
-psxobj01_SOURCES = init.c
+psxobj01_SOURCES = init.c ../../support/src/test_support.c
 
 dist_rtems_tests_DATA = psxobj01.scn
 dist_rtems_tests_DATA += psxobj01.doc

diff -u rtems/testsuites/psxtests/psxobj01/init.c:1.1 rtems/testsuites/psxtests/psxobj01/init.c:1.2
--- rtems/testsuites/psxtests/psxobj01/init.c:1.1	Fri Jun 12 10:17:49 2009
+++ rtems/testsuites/psxtests/psxobj01/init.c	Tue Jul 27 15:16:23 2010
@@ -12,6 +12,7 @@
 
 #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <tmacros.h>
+#include "test_support.h"
 
 rtems_task Init(
   rtems_task_argument ignored
@@ -21,6 +22,7 @@
   Objects_Information              TestClass;
   Objects_Id                       id;
   char                             name[64];
+  bool                             bc;
 
   puts( "\n\n*** POSIX OBJECT TEST 1 ***" );
 
@@ -62,6 +64,13 @@
     rtems_test_exit(0);
   }
 
+  /* out of memory error ONLY when POSIX is enabled */
+  puts( "INIT - _Objects_Set_name fails - out of memory" );
+  Allocate_majority_of_workspace( 1 );
+
+  bc = _Objects_Set_name( &TestClass, &_Thread_Executing->Object, name );
+  rtems_test_assert( bc == false );
+
   puts( "*** END OF POSIX OBJECT TEST 1 ***" );
   rtems_test_exit(0);
 }

diff -u rtems/testsuites/psxtests/psxobj01/psxobj01.scn:1.1 rtems/testsuites/psxtests/psxobj01/psxobj01.scn:1.2
--- rtems/testsuites/psxtests/psxobj01/psxobj01.scn:1.1	Fri Jun 12 10:17:49 2009
+++ rtems/testsuites/psxtests/psxobj01/psxobj01.scn	Tue Jul 27 15:16:23 2010
@@ -2,4 +2,6 @@
 INIT - _Objects_Name_to_id_string - NULL name
 INIT - _Objects_Name_to_id_string - NULL ID
 INIT - _Objects_Name_to_id_string - name of non-existent object
+INIT - _Objects_Set_name fails - out of memory
+Allocate_majority_of_workspace: 
 *** END OF POSIX OBJECT TEST 1 ***



--

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/20100727/07237292/attachment-0001.html>


More information about the vc mailing list