diff options
author | bje <bje> | 1998-10-04 19:38:04 +0000 |
---|---|---|
committer | bje <bje> | 1998-10-04 19:38:04 +0000 |
commit | 11b839f08794de0d090811580a09aa6db5b21f2c (patch) | |
tree | c41469a1ba35d67bb40fbf32d480a5b2c5533420 /tests/create1.c | |
parent | 0477632dbe94f378853364cd868cc0f800cb5755 (diff) |
1998-10-05 Ben Elliston <bje@cygnus.com>
* misc.c (pthread_equal): Correct inverted logic bug.
* tests/create1.c: New file; test pthread_create(). Passes.
* tests/equal.c: Poor test; remove.
* tests/equal1.c New file; test pthread_equal(). Passes.
Diffstat (limited to 'tests/create1.c')
-rw-r--r-- | tests/create1.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/create1.c b/tests/create1.c new file mode 100644 index 0000000..841c565 --- /dev/null +++ b/tests/create1.c @@ -0,0 +1,19 @@ +#include <pthread.h> +#include <stdio.h> +#include <windows.h> + +void * func(void * arg) +{ + printf("Hello world\n"); + return 0; +} + +int +main() +{ + pthread_t t; + pthread_create(&t, NULL, func, NULL); + + Sleep(5000); + return 0; +} |