change log for rtems (2011-08-01)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Aug 1 17:10:35 UTC 2011


 *joel*:
2011-08-01	Joel Sherrill <joel.sherrill at oarcorp.com>

	* sp75/init.c, sp75/sp75.doc, sp75/sp75.scn: Correct test and
	supporting documentation.

M  1.469  testsuites/sptests/ChangeLog
M    1.2  testsuites/sptests/sp75/init.c
M    1.2  testsuites/sptests/sp75/sp75.doc
M    1.2  testsuites/sptests/sp75/sp75.scn

diff -u rtems/testsuites/sptests/ChangeLog:1.468 rtems/testsuites/sptests/ChangeLog:1.469
--- rtems/testsuites/sptests/ChangeLog:1.468	Thu Jul 28 16:06:42 2011
+++ rtems/testsuites/sptests/ChangeLog	Mon Aug  1 11:15:45 2011
@@ -1,3 +1,8 @@
+2011-08-01	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* sp75/init.c, sp75/sp75.doc, sp75/sp75.scn: Correct test and
+	supporting documentation.
+
 2011-07-28	Pawel Zagorski <pzagor at agh.edu.pl>
 
 	PR 1857/tests

diff -u rtems/testsuites/sptests/sp75/init.c:1.1 rtems/testsuites/sptests/sp75/init.c:1.2
--- rtems/testsuites/sptests/sp75/init.c:1.1	Tue Jul 26 15:53:09 2011
+++ rtems/testsuites/sptests/sp75/init.c	Mon Aug  1 11:15:45 2011
@@ -31,13 +31,17 @@
   );
   directive_failed(sc, "rtems_semaphore_create");
 
+  /*
+   *  Call semaphore obtain with dispatching disabled.  Reenable
+   *  dispatching before checking the status returned since
+   *  directive_failed() checks for dispatching being enabled.
+   */
+  puts( "rtems_semaphore_obtain - with dispatching disabled" );
   _Thread_Disable_dispatch();
-
-  sc = rtems_semaphore_obtain(mutex, RTEMS_NO_WAIT, RTEMS_NO_TIMEOUT);
+    sc = rtems_semaphore_obtain(mutex, RTEMS_NO_WAIT, RTEMS_NO_TIMEOUT);
+  _Thread_Enable_dispatch();
   directive_failed(sc, "rtems_semaphore_obtain");
 
-  _Thread_Enable_dispatch();
-  
   puts( "*** END OF TEST SP75 ***" );
   rtems_test_exit(0);
 }

diff -u rtems/testsuites/sptests/sp75/sp75.doc:1.1 rtems/testsuites/sptests/sp75/sp75.doc:1.2
--- rtems/testsuites/sptests/sp75/sp75.doc:1.1	Tue Jul 26 15:53:09 2011
+++ rtems/testsuites/sptests/sp75/sp75.doc	Mon Aug  1 11:15:45 2011
@@ -15,8 +15,9 @@
 
 directives:
 
-  XXX list them
+  rtems_semaphore_obtain
 
 concepts:
 
-+ XXX list them
++ obtain semaphore in no wait mode with dispatching disabled.  This is
+logically the same as performing the same operation from an ISR.

diff -u rtems/testsuites/sptests/sp75/sp75.scn:1.1 rtems/testsuites/sptests/sp75/sp75.scn:1.2
--- rtems/testsuites/sptests/sp75/sp75.scn:1.1	Tue Jul 26 15:53:09 2011
+++ rtems/testsuites/sptests/sp75/sp75.scn	Mon Aug  1 11:15:45 2011
@@ -1 +1,3 @@
-XXX fill in with test output
+*** TEST SP75 ***
+rtems_semaphore_obtain - with dispatching disabled
+*** END OF TEST SP75 ***



--

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/20110801/36c9a782/attachment.html>


More information about the vc mailing list