diff options
Diffstat (limited to 'winsup/testsuite/winsup.api/pthread/self1.c')
-rw-r--r-- | winsup/testsuite/winsup.api/pthread/self1.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/winsup/testsuite/winsup.api/pthread/self1.c b/winsup/testsuite/winsup.api/pthread/self1.c new file mode 100644 index 000000000..d46081830 --- /dev/null +++ b/winsup/testsuite/winsup.api/pthread/self1.c @@ -0,0 +1,26 @@ +/* + * self1.c + * + * Test for pthread_self(). + * + * Depends on API functions: + * pthread_self() + * + * Implicitly depends on: + * pthread_getspecific() + * pthread_setspecific() + */ + +#include "test.h" + +int +main(int argc, char * argv[]) +{ + /* + * This should always succeed unless the system has no + * resources (memory) left. + */ + assert(pthread_self() != NULL); + + return 0; +} |