summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx08
diff options
context:
space:
mode:
authorSteven Kou <kouyongkang@gmail.com>2013-11-25 09:49:36 -0500
committerGedare Bloom <gedare@rtems.org>2013-11-25 09:49:36 -0500
commitd1dbabd21582e385cf496793a5dc43d91150ef9a (patch)
tree7bab705c237ac49b9e98b212159815ca2ca06849 /testsuites/psxtests/psx08
parentpowerpc/mpc55xxevb: Move bspworkarea.c to bspgetworkarea.c (diff)
downloadrtems-d1dbabd21582e385cf496793a5dc43d91150ef9a.tar.bz2
psxtests: Add test document file to psx08.
Diffstat (limited to 'testsuites/psxtests/psx08')
-rw-r--r--testsuites/psxtests/psx08/psx08.doc28
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx08/psx08.doc b/testsuites/psxtests/psx08/psx08.doc
new file mode 100644
index 0000000000..958b654f0b
--- /dev/null
+++ b/testsuites/psxtests/psx08/psx08.doc
@@ -0,0 +1,28 @@
+# testsuites/psxtests/psx08/psx08.doc
+# COPYRIGHT (c) 1989-2009.
+# On-Line Applications Research Corporation (OAR).
+# Copyright (c) 2013 Steven Kou <kouyongkang@gmail.com>
+#
+# 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: psx08
+
+directives:
++ pthread_detach
++ pthread_join
++ pthread_create
+
+concepts:
+
++ get the thread id
++ detaches self and joins with child for task 1
++ verify the return value of pthread_join and pointer returned
++ creates 2 pthreads and detaches one of them
++ task 3 joins with task 2
++ joins both new pthreads to the original thread
++ verify the return value and pointer returned of pthread_join after task 2 exits
++ task 3 exits and returned a value, verifies that the pointer is correct