Index: tests/concurrent/pthread/.expect/pthread_attr_test.txt
===================================================================
--- tests/concurrent/pthread/.expect/pthread_attr_test.txt	(revision 20be7824be588cb516b811f2b84e12e776350a51)
+++ tests/concurrent/pthread/.expect/pthread_attr_test.txt	(revision 8b74fa74db327a2cce113add048683b58496f6f5)
@@ -1,1 +1,1 @@
-Hi
+stack size is 123456789
Index: tests/concurrent/pthread/bounded_buffer.cfa
===================================================================
--- tests/concurrent/pthread/bounded_buffer.cfa	(revision 20be7824be588cb516b811f2b84e12e776350a51)
+++ tests/concurrent/pthread/bounded_buffer.cfa	(revision 8b74fa74db327a2cce113add048683b58496f6f5)
@@ -4,4 +4,7 @@
 #include <pthread.h>
 #include <errno.h>
+// tested pthread mutex related routines, pthread cond related routines
+// tested pthread_create/join
+
 enum { BufferSize = 50 };
 
Index: tests/concurrent/pthread/pthread_attr_test.cfa
===================================================================
--- tests/concurrent/pthread/pthread_attr_test.cfa	(revision 20be7824be588cb516b811f2b84e12e776350a51)
+++ tests/concurrent/pthread/pthread_attr_test.cfa	(revision 8b74fa74db327a2cce113add048683b58496f6f5)
@@ -4,6 +4,13 @@
 #include <thread.hfa>
 
-void* foo(void* arg){
-    sout | "Hi";
+void* foo(void* _attr){
+    size_t size;
+    pthread_attr_t* attr = (pthread_attr_t*)_attr;
+    int status = pthread_attr_getstacksize(attr, &size);
+    if (status != 0){
+        sout | "error return code";
+        exit(1);
+    }
+    sout | "stack size is " | size;
     return NULL;
 }
@@ -16,7 +23,7 @@
     pthread_t thr;
     void* res;
-    pthread_create(&thr, &attr, foo, NULL);
+    pthread_create(&thr, &attr, foo, (void*)&attr);
     pthread_join(thr, &res);
-    //pthread_attr_destroy(&attr);
+    pthread_attr_destroy(&attr);
     return 0;
 }
Index: tests/concurrent/pthread/pthread_cond_test.cfa
===================================================================
--- tests/concurrent/pthread/pthread_cond_test.cfa	(revision 20be7824be588cb516b811f2b84e12e776350a51)
+++ tests/concurrent/pthread/pthread_cond_test.cfa	(revision 8b74fa74db327a2cce113add048683b58496f6f5)
@@ -1,3 +1,3 @@
-/* test cond provide sync */
+/* small test of pthread cond */
 
 #include <fstream.hfa>
Index: tests/concurrent/pthread/pthread_demo_create_join.cfa
===================================================================
--- tests/concurrent/pthread/pthread_demo_create_join.cfa	(revision 20be7824be588cb516b811f2b84e12e776350a51)
+++ tests/concurrent/pthread/pthread_demo_create_join.cfa	(revision 8b74fa74db327a2cce113add048683b58496f6f5)
@@ -1,5 +1,6 @@
 #include <fstream.hfa>
 #include <thread.hfa>
-/* test that threads can create successfully and join correct result */
+/* test pthread create/join/exit */
+
 int arr[20];
 
Index: tests/concurrent/pthread/pthread_key_test.cfa
===================================================================
--- tests/concurrent/pthread/pthread_key_test.cfa	(revision 20be7824be588cb516b811f2b84e12e776350a51)
+++ tests/concurrent/pthread/pthread_key_test.cfa	(revision 8b74fa74db327a2cce113add048683b58496f6f5)
@@ -1,4 +1,4 @@
 
-/* This test is to test that multiple threads can create one key and set their own specifics
+/* test pthread_key_create/set_specific/get_specific
     get specific == set specific
     dtor is invoked (no mem leak)
Index: tests/concurrent/pthread/pthread_once_test.cfa
===================================================================
--- tests/concurrent/pthread/pthread_once_test.cfa	(revision 20be7824be588cb516b811f2b84e12e776350a51)
+++ tests/concurrent/pthread/pthread_once_test.cfa	(revision 8b74fa74db327a2cce113add048683b58496f6f5)
@@ -1,5 +1,4 @@
-#ifndef _OPEN_THREADS                                                           
-#define _OPEN_THREADS                                                           
-#endif                                                                          
+// tested pthread once,create,join
+
                                                           
                                                                                 
