summaryrefslogtreecommitdiffstats
path: root/winsup/testsuite/winsup.api/pthread/self1.c
blob: d46081830064a6f633501de5340137cc499acb16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
}