change log for rtems (2011-08-01)
rtems-vc at rtems.org
rtems-vc at rtems.org
Mon Aug 1 13:10:20 UTC 2011
*joel*:
2011-08-01 Joel Sherrill <joel.sherrilL at OARcorp.com>
* psx16/.cvsignore, psx16/init.c, psx16/psx16.doc, psx16/psx16.scn: New
files. Accidentally missed in previous commit.
M 1.350 testsuites/psxtests/ChangeLog
M 1.2 testsuites/psxtests/psx16/.cvsignore
M 1.2 testsuites/psxtests/psx16/init.c
M 1.2 testsuites/psxtests/psx16/psx16.doc
M 1.2 testsuites/psxtests/psx16/psx16.scn
diff -u rtems/testsuites/psxtests/ChangeLog:1.349 rtems/testsuites/psxtests/ChangeLog:1.350
--- rtems/testsuites/psxtests/ChangeLog:1.349 Sun Jul 31 17:40:30 2011
+++ rtems/testsuites/psxtests/ChangeLog Mon Aug 1 07:45:14 2011
@@ -1,3 +1,8 @@
+2011-08-01 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ * psx16/.cvsignore, psx16/init.c, psx16/psx16.doc, psx16/psx16.scn: New
+ files. Accidentally missed in previous commit.
+
2011-07-31 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1855/cpukit
diff -u /dev/null rtems/testsuites/psxtests/psx16/.cvsignore:1.2
--- /dev/null Mon Aug 1 08:10:19 2011
+++ rtems/testsuites/psxtests/psx16/.cvsignore Mon Aug 1 07:45:14 2011
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff -u /dev/null rtems/testsuites/psxtests/psx16/init.c:1.2
--- /dev/null Mon Aug 1 08:10:19 2011
+++ rtems/testsuites/psxtests/psx16/init.c Mon Aug 1 07:45:14 2011
@@ -0,0 +1,78 @@
+/*
+ * COPYRIGHT (c) 1989-2011.
+ * 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 <pthread.h>
+
+int Index;
+
+void *TestThread(
+ void *argument
+)
+{
+ int *index = (int *)argument;
+
+ *index = 7;
+
+ puts( "TestThread exiting" );
+ return argument;
+}
+
+void *POSIX_Init(
+ rtems_task_argument argument
+)
+{
+ int status;
+ pthread_t id;
+ pthread_attr_t attr;
+ void *join_return;
+
+ puts( "\n\n*** POSIX TEST PSX16 ***" );
+
+ Index = 5;
+
+ /* Initialize and set thread detached attribute */
+ pthread_attr_init(&attr);
+ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
+
+ puts( "Creating TestThread" );
+ status = pthread_create( &id, &attr, TestThread, (void *)&Index );
+ rtems_test_assert( status == 0 );
+
+ /* let test thread run and exit */
+ puts( "Let TestThread run and exit before we attempt to join" );
+ sleep( 2 );
+
+ join_return = NULL;
+ status = pthread_join( id, &join_return );
+ rtems_test_assert( status == 0 );
+ rtems_test_assert( join_return == &Index );
+ rtems_test_assert( *(int *)join_return == 7 );
+ puts( "Successfully joined with TestThread" );
+
+ puts( "*** END OF POSIX TEST PSX16 ***" );
+
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
+
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */
diff -u /dev/null rtems/testsuites/psxtests/psx16/psx16.doc:1.2
--- /dev/null Mon Aug 1 08:10:20 2011
+++ rtems/testsuites/psxtests/psx16/psx16.doc Mon Aug 1 07:45:14 2011
@@ -0,0 +1,24 @@
+#
+# $Id$
+#
+# COPYRIGHT (c) 1989-2011.
+# 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: psx16
+
+directives:
+
+ pthread_join
+ pthread_exit
+
+concepts:
+
++ Ensure that if a joinable thread exits before it has been joined,
+that it waits for a thread to call pthread_join.
diff -u /dev/null rtems/testsuites/psxtests/psx16/psx16.scn:1.2
--- /dev/null Mon Aug 1 08:10:20 2011
+++ rtems/testsuites/psxtests/psx16/psx16.scn Mon Aug 1 07:45:14 2011
@@ -0,0 +1,6 @@
+*** POSIX TEST PSX16 ***
+Creating TestThread
+Let TestThread run and exit before we attempt to join
+TestThread exiting
+Successfully joined with TestThread
+*** END OF POSIX TEST PSX16 ***
--
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/28f56c00/attachment-0001.html>
More information about the vc
mailing list