mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
83865be35c
commit
33aacc3d4b
7 changed files with 40 additions and 18 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue