From 914b87dd71aeaa3d4d8b9e9308b336994be9d600 Mon Sep 17 00:00:00 2001 From: bje Date: Wed, 22 Jul 1998 05:01:25 +0000 Subject: New files. --- tests/self.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/self.c (limited to 'tests/self.c') diff --git a/tests/self.c b/tests/self.c new file mode 100644 index 0000000..0addfc8 --- /dev/null +++ b/tests/self.c @@ -0,0 +1,21 @@ +/* + * Test for pthread_self(). + * + * Depends on API functions: None. + */ + +#include + +int +main(int argc, char * argv[]) +{ + pthread_t id; + + /* We can't do anything with this, though, because it is not + safe to assume anything about the internal structure of + a `pthread_t'. */ + + id = pthread_self(); + + return 0; +} -- cgit v1.2.3