summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx01/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 20:56:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 20:56:57 +0000
commit2197a2e15fa57bbc7a6f2bfe3d00a75860fbaa82 (patch)
tree309de7990958a9edc3281725d0f799a70121c515 /testsuites/psxtests/psx01/init.c
parentadded pthread_exit (diff)
downloadrtems-2197a2e15fa57bbc7a6f2bfe3d00a75860fbaa82.tar.bz2
simple version of test which shows pthread_create, pthread_exit, and exit
are basically working. This test will be enhanced further.
Diffstat (limited to 'testsuites/psxtests/psx01/init.c')
-rw-r--r--testsuites/psxtests/psx01/init.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index 5605f9fff0..3469f3f7b4 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -25,10 +25,12 @@
#define CONFIGURE_INIT
#include "system.h"
-void Init(
+void *Init(
void *argument
)
{
+ int status;
+ pthread_t thread_id;
puts( "\n\n*** POSIX TEST 1 ***" );
@@ -38,5 +40,12 @@ void Init(
/* exit */
+ status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL );
+ assert( !status );
+
pthread_exit( NULL );
+
+ /* just to satisfy compilers which think we did not return anything */
+
+ return NULL;
}