summaryrefslogtreecommitdiff
path: root/tests/utils.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-09-23 12:15:38 +0200
committerSimon Josefsson <simon@josefsson.org>2011-09-23 12:15:38 +0200
commit8aae368bd1fb38e83ae2dc1de9c46e9d99252f21 (patch)
tree650bec6ef95eaf473ee5580049947172310be18a /tests/utils.c
parent3fc1df4a398be9cabc805ac99f11ce373e12a042 (diff)
downloadgnutls-8aae368bd1fb38e83ae2dc1de9c46e9d99252f21.tar.gz
Redeuce self-test noise.
Diffstat (limited to 'tests/utils.c')
-rw-r--r--tests/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils.c b/tests/utils.c
index f4b8c4ad09..fd543fe697 100644
--- a/tests/utils.c
+++ b/tests/utils.c
@@ -1,6 +1,5 @@
/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Free Software
- * Foundation, Inc.
+ * Copyright (C) 2004-2011 Free Software Foundation, Inc.
*
* Author: Simon Josefsson
*
@@ -152,7 +151,8 @@ main (int argc, char *argv[])
doit ();
- printf ("Self test `%s' finished with %d errors\n", argv[0], error_count);
+ if (debug || error_count > 0)
+ printf ("Self test `%s' finished with %d errors\n", argv[0], error_count);
return error_count ? 1 : 0;
}