gpg: Silence some regression tests.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Jan 2016 07:49:45 +0000 (08:49 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Jan 2016 07:49:45 +0000 (08:49 +0100)
* g10/test.c (TEST): Print diagnostics only in verbose mode.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/test.c

index 59a015c..39d5945 100644 (file)
@@ -63,11 +63,12 @@ static int verbose;
     int expected_result;                       \
                                                \
     tests ++;                                  \
-                                               \
-    printf ("%d. Checking %s...",              \
-           tests, (description) ?: "");        \
-    fflush (stdout);                           \
-                                               \
+    if (verbose)                                \
+      {                                         \
+         printf ("%d. Checking %s...",         \
+               tests, (description) ?: "");    \
+         fflush (stdout);                      \
+      }                                         \
     test_result = (test);                      \
     expected_result = (expected);              \
                                                \