diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2002-06-16 23:05:15 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2002-06-16 23:05:15 +0000 |
commit | bab578a547503e48a45e1c4ce243104a9cfa3e6d (patch) | |
tree | 44568bff50b6f2fa06ddad8679da511136534146 /regress | |
parent | cb8a89ac41c7ff66e1aec8825fa4b33548778bc1 (diff) |
write output to stdout instead of fprintf to stderr. This brings it
in line with all of the other pthread regression tests.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libc_r/pthread_specific/pthread_specific.c | 6 | ||||
-rw-r--r-- | regress/lib/libpthread/pthread_specific/pthread_specific.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/regress/lib/libc_r/pthread_specific/pthread_specific.c b/regress/lib/libc_r/pthread_specific/pthread_specific.c index 16c28f2c8cb..7c030bacabc 100644 --- a/regress/lib/libc_r/pthread_specific/pthread_specific.c +++ b/regress/lib/libc_r/pthread_specific/pthread_specific.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_specific.c,v 1.1 2002/05/03 10:08:55 wcobb Exp $ */ +/* $OpenBSD: pthread_specific.c,v 1.2 2002/06/16 23:05:14 marc Exp $ */ /* * Copyright (c) 2002 CubeSoft Communications, Inc. @@ -42,7 +42,7 @@ run_thread(void *arg) { int i; - fprintf(stderr, "."); + CHECKe(write(STDOUT_FILENO, ".", 1)); for (i = 0; i < 32767; i++) { void *p; @@ -77,7 +77,7 @@ main() for (i = 0; i < NTHREADS; i++) { CHECKr(pthread_join(threads[i], NULL)); } - fprintf(stderr, "\n"); + CHECKe(write(STDOUT_FILENO, "\n", 1)); CHECKr(pthread_key_delete(key)); diff --git a/regress/lib/libpthread/pthread_specific/pthread_specific.c b/regress/lib/libpthread/pthread_specific/pthread_specific.c index 16c28f2c8cb..7c030bacabc 100644 --- a/regress/lib/libpthread/pthread_specific/pthread_specific.c +++ b/regress/lib/libpthread/pthread_specific/pthread_specific.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_specific.c,v 1.1 2002/05/03 10:08:55 wcobb Exp $ */ +/* $OpenBSD: pthread_specific.c,v 1.2 2002/06/16 23:05:14 marc Exp $ */ /* * Copyright (c) 2002 CubeSoft Communications, Inc. @@ -42,7 +42,7 @@ run_thread(void *arg) { int i; - fprintf(stderr, "."); + CHECKe(write(STDOUT_FILENO, ".", 1)); for (i = 0; i < 32767; i++) { void *p; @@ -77,7 +77,7 @@ main() for (i = 0; i < NTHREADS; i++) { CHECKr(pthread_join(threads[i], NULL)); } - fprintf(stderr, "\n"); + CHECKe(write(STDOUT_FILENO, "\n", 1)); CHECKr(pthread_key_delete(key)); |