diff options
author | Werner Koch <wk@gnupg.org> | 2016-05-03 11:26:06 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-05-03 11:26:06 +0200 |
commit | 33aacc3d4bbd6a82d7e7ceca058970879741b7da (patch) | |
tree | 87d74f35156740dc845f8a5d6bfbd610f490fbf7 /common/t-exechelp.c | |
parent | gpg: Emit status lines TOFU_STATS and TOFU_STATS_LONG. (diff) | |
download | gnupg2-33aacc3d4bbd6a82d7e7ceca058970879741b7da.tar.xz gnupg2-33aacc3d4bbd6a82d7e7ceca058970879741b7da.zip |
tests: Silence output of some tests.
* common/t-exechelp.c (print_open_fds): Silence non-verbose output.
(test_close_all_fds): Ditto.
* common/t-session-env.c (show_stdnames): Indent output.
* g10/test.c (TEST): Silence non-verbose okay output.
(exit_tests): Ditto.
* tools/gpg-zip.in (tar_verbose_opt): Add option --quiet.
* tests/openpgp/gpgtar.test (GPGZIP): Pass option --quiet.
* tests/openpgp/mds.test: Indent MD5 notice.
* tests/openpgp/version.test: Indent --version output.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/t-exechelp.c')
-rw-r--r-- | common/t-exechelp.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/common/t-exechelp.c b/common/t-exechelp.c index 19079d331..3a47dc8ef 100644 --- a/common/t-exechelp.c +++ b/common/t-exechelp.c @@ -35,18 +35,18 @@ print_open_fds (int *array) { int n; + if (!verbose) + return; + for (n=0; array[n] != -1; n++) ; printf ("open file descriptors: %d", n); - if (verbose) - { - putchar (' '); - putchar (' '); - putchar ('('); - for (n=0; array[n] != -1; n++) - printf ("%d%s", array[n], array[n+1] == -1?"":" "); - putchar (')'); - } + putchar (' '); + putchar (' '); + putchar ('('); + for (n=0; array[n] != -1; n++) + printf ("%d%s", array[n], array[n+1] == -1?"":" "); + putchar (')'); putchar ('\n'); } @@ -84,7 +84,8 @@ test_close_all_fds (void) system (buffer); #endif - printf ("max. file descriptors: %d\n", max_fd); + if (verbose) + printf ("max. file descriptors: %d\n", max_fd); array = xget_all_open_fds (); print_open_fds (array); for (initial_count=n=0; array[n] != -1; n++) |