summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-11-16 05:11:07 +0000
committerngie <ngie@FreeBSD.org>2014-11-16 05:11:07 +0000
commit3b4aec1a93b70a7d86d1b84c77e4ec086033a217 (patch)
treed5778f65da65cdcf1ac1b19098c8c5243e13aee9 /contrib/netbsd-tests
parentf840de8bc3bef985ee900051958116d980d52e1a (diff)
downloadFreeBSD-src-3b4aec1a93b70a7d86d1b84c77e4ec086033a217.zip
FreeBSD-src-3b4aec1a93b70a7d86d1b84c77e4ec086033a217.tar.gz
#ifdef out a printf on !NetBSD that causes the testcase to fail when comparing
the output from the helper program Submitted by: pho
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libpthread/h_cancel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libpthread/h_cancel.c b/contrib/netbsd-tests/lib/libpthread/h_cancel.c
index 1077806..b7a9363 100644
--- a/contrib/netbsd-tests/lib/libpthread/h_cancel.c
+++ b/contrib/netbsd-tests/lib/libpthread/h_cancel.c
@@ -42,7 +42,9 @@ main(void)
char str1[] = "You should see this.\n";
char str2[] = "You should not see this.\n";
+#ifdef __NetBSD__
printf("Cancellation test: Self-cancellation and disabling.\n");
+#endif
pthread_cancel(pthread_self());
OpenPOWER on IntegriCloud