]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Redeuce self-test noise.
authorSimon Josefsson <simon@josefsson.org>
Fri, 23 Sep 2011 10:15:38 +0000 (12:15 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 23 Sep 2011 10:15:38 +0000 (12:15 +0200)
tests/utils.c

index f4b8c4ad09cc24b229528f99f8e27dfcbe80b156..fd543fe697524a670ae78a0c82e448a54419c4da 100644 (file)
@@ -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;
 }