summaryrefslogtreecommitdiffstats
path: root/regress/lib/libpthread/sleep/sleep.c
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2002-06-16 23:06:15 +0000
committermarc <marc@openbsd.org>2002-06-16 23:06:15 +0000
commitc0a6f2a4d08d2cd7c686de7aadb83c22ba4b822e (patch)
treee05854a91d3255f8848a04fd0c5687e524416206 /regress/lib/libpthread/sleep/sleep.c
parentwrite output to stdout instead of fprintf to stderr. This brings it (diff)
downloadwireguard-openbsd-c0a6f2a4d08d2cd7c686de7aadb83c22ba4b822e.tar.xz
wireguard-openbsd-c0a6f2a4d08d2cd7c686de7aadb83c22ba4b822e.zip
write newline before successful test completion
Diffstat (limited to 'regress/lib/libpthread/sleep/sleep.c')
-rw-r--r--regress/lib/libpthread/sleep/sleep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libpthread/sleep/sleep.c b/regress/lib/libpthread/sleep/sleep.c
index 7819c136c3f..e2da9992f7f 100644
--- a/regress/lib/libpthread/sleep/sleep.c
+++ b/regress/lib/libpthread/sleep/sleep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sleep.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */
+/* $OpenBSD: sleep.c,v 1.3 2002/06/16 23:06:28 marc Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -79,5 +79,6 @@ main()
for (i = 0; i < count; i++)
CHECKr(pthread_join(thread[i], NULL));
+ CHECKe(write(STDOUT_FILENO, "\n", 1));
SUCCEED;
}