From 7a3104dc65b469cbb9c88b6a9c7b7bea4126a43e Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 5 Jul 2001 17:04:39 +0000 Subject: Fixups to last commit. --- tests/spin1.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/spin1.c') diff --git a/tests/spin1.c b/tests/spin1.c index e9e5731..347cf18 100644 --- a/tests/spin1.c +++ b/tests/spin1.c @@ -8,24 +8,20 @@ #include "test.h" -pthread_spinlock_t lock = NULL; +pthread_spinlock_t lock; int main() { - assert(lock == NULL); - assert(pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE) == 0); - assert(lock != NULL); - assert(pthread_spin_lock(&lock) == 0); assert(pthread_spin_unlock(&lock) == 0); assert(pthread_spin_destroy(&lock) == 0); - assert(lock == NULL); + assert(pthread_spin_lock(&lock) == EINVAL); return 0; } -- cgit v1.2.3