From 547aa11ebad61aefb3ed27028580dd6873bcc1b5 Mon Sep 17 00:00:00 2001 From: bje Date: Sun, 4 Oct 1998 22:07:33 +0000 Subject: 1998-10-05 Ben Elliston * tests/self.c: Remove; rename to self1.c. * tests/self1.c: This is the old self.c. * tests/self2.c: New file. Test pthread_self() with a single thread. Passes. * tests/self3.c: New file. Test pthread_self() with a couple of threads to ensure their thread IDs differ. Passes. --- tests/self1.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/self1.c (limited to 'tests/self1.c') diff --git a/tests/self1.c b/tests/self1.c new file mode 100644 index 0000000..0addfc8 --- /dev/null +++ b/tests/self1.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