summaryrefslogtreecommitdiffstats
path: root/regress/lib/libpthread
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
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')
-rw-r--r--regress/lib/libpthread/signal/signal.c3
-rw-r--r--regress/lib/libpthread/sleep/sleep.c3
-rw-r--r--regress/lib/libpthread/switch/switch.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/regress/lib/libpthread/signal/signal.c b/regress/lib/libpthread/signal/signal.c
index 2d79cf2e08a..815052db03d 100644
--- a/regress/lib/libpthread/signal/signal.c
+++ b/regress/lib/libpthread/signal/signal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signal.c,v 1.3 2001/11/11 23:26:35 deraadt Exp $ */
+/* $OpenBSD: signal.c,v 1.4 2002/06/16 23:06:15 marc Exp $ */
/* David Leonard <d@openbsd.org>, 2001. Public Domain. */
/*
@@ -24,6 +24,7 @@ sleeper(arg)
sigfillset(&mask);
CHECKe(sigprocmask(SIG_SETMASK, &mask, NULL));
ASSERT(sleep(3) == 0);
+ CHECKe(write(STDOUT_FILENO, "\n", 1));
SUCCEED;
}
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;
}
diff --git a/regress/lib/libpthread/switch/switch.c b/regress/lib/libpthread/switch/switch.c
index b6d571e78af..4c21eafe392 100644
--- a/regress/lib/libpthread/switch/switch.c
+++ b/regress/lib/libpthread/switch/switch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: switch.c,v 1.1.1.1 2001/08/15 14:37:16 fgsch Exp $ */
+/* $OpenBSD: switch.c,v 1.2 2002/06/16 23:06:53 marc Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -126,5 +126,6 @@ main(argc, argv)
for (i = 0; i < count; i++)
ASSERT(x[i]); /* make sure each thread ran */
+ CHECKe(write(STDOUT_FILENO, "\n", 1));
SUCCEED;
}