diff options
author | rpj <rpj> | 2005-05-08 16:52:50 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-08 16:52:50 +0000 |
commit | 7395b1431d5e2160682de273b46252c747ccbf36 (patch) | |
tree | bcff10e33282212ae087bb5074bc6025fc1313a3 /tests/semaphore1.c | |
parent | 78f83cfa240ec14874b22c7302ff8d306c130aaf (diff) |
''
Diffstat (limited to 'tests/semaphore1.c')
-rw-r--r-- | tests/semaphore1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/semaphore1.c b/tests/semaphore1.c index 4327e73..f89a430 100644 --- a/tests/semaphore1.c +++ b/tests/semaphore1.c @@ -86,7 +86,8 @@ thr(void * arg) if ( result == -1 ) { int err = errno; - perror("thread: sem_trywait 1: expect an EAGAIN error"); // No error + printf("thread: sem_trywait 1: expecting error %s: got %s\n", + error_string[EAGAIN], error_string[err]); fflush(stdout); assert(err == EAGAIN); } else @@ -131,7 +132,8 @@ main() if ( result == -1 ) { int err = errno; - perror("main: sem_trywait 1: expect an EAGAIN error"); // No error + printf("main: sem_trywait 1: expecting error %s: got %s\n", + error_string[EAGAIN], error_string[err]); fflush(stdout); assert(err == EAGAIN); } else |