remove (or hide behind a 'verbose' flag) extra output from system tests

This commit is contained in:
Evan Hunt
2018-11-16 08:19:06 +00:00
parent d4bad35bb0
commit 8f15219f36
9 changed files with 114 additions and 43 deletions

View File

@@ -620,6 +620,8 @@ issecuredomain_test(void **state) {
/* check dns_keytable_dump() */
static void
dump_test(void **state) {
FILE *f = fopen("/dev/null", "w");
UNUSED(state);
create_tables();
@@ -628,7 +630,8 @@ dump_test(void **state) {
* Right now, we only confirm the dump attempt doesn't cause disruption
* (so we don't check the dump content).
*/
assert_int_equal(dns_keytable_dump(keytable, stdout), ISC_R_SUCCESS);
assert_int_equal(dns_keytable_dump(keytable, f), ISC_R_SUCCESS);
fclose(f);
destroy_tables();
}