summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
1998-10-041998-10-05 Ben Elliston <bje@cygnus.com>bje
* 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.
1998-10-041998-10-05 Ben Elliston <bje@cygnus.com>bje
* global.c (PTHREAD_MUTEX_INITIALIZER): Move to pthread.h. * pthread.h (PTHREAD_MUTEX_INITIALIZER): Define. (pthread_mutex_t): Reimplement as a struct containing a valid flag. If the flag is ever down upon entry to a mutex operation, we call pthread_mutex_create() to initialise the object. This fixes the problem of how to handle statically initialised objects that can't call InitializeCriticalSection() due to their context. * mutex.c (pthread_mutex_init): Set valid flag. (pthread_mutex_destroy): Clear valid flag. (pthread_mutex_lock): Check and handle the valid flag. (pthread_mutex_unlock): Likewise. (pthread_mutex_trylock): Likewise. * tests/mutex3.c: New file; test for the static initialisation macro. Passes.
1998-10-041998-10-04 Ben Elliston <bje@cygnus.com>bje
* tests/mutex2.c: Test pthread_mutex_trylock(). Passes. * tests/mutex1.c (main): Eliminate warning.
1998-10-041998-10-04 Ben Elliston <bje@cygnus.com>bje
* tests/mutex1.c: New basic test for mutex functions (it passes).
1998-09-131998-09-13 Ben Elliston <bje@cygnus.com>bje
* eyal1.c: New file; contributed by Eyal Lebedinsky <eyal@eyal.emu.id.au>.
1998-09-121998-09-12 Ben Elliston <bje@cygnus.com>bje
* exit2.c (func): Return a value. (main): Call the right thread entry function.
1998-07-22 * ChangeLog: Update.bje
1998-07-22New files.bje
1998-07-221998-07-22 Ben Elliston <bje@cygnus.com>bje
* exit2.c (main): Fix size of pthread_t array.
1998-07-10 * ChangeLog: Update.bje
1998-07-101998-07-10 Ben Elliston <bje@cygnus.com>bje
* exit2.c: New file; test pthread_exit() harder.
1998-07-101998-07-10 Ben Elliston <bje@cygnus.com>bje
* exit1.c: New file; test pthread_exit().
1998-07-10 * ChangeLog: New; keep testsuite changes out of the top-level.bje