X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=client%2Fadnstest.c;h=e99f5a1ac4967f42982787dca5b041f5f8b02501;hb=3b3e6ba1d88ceec9d67a739d4fe2f26ba9a6278c;hp=178bda583a4a60276b2c57866fda002d5c25edd8;hpb=fb901bf5198d9d29014068dcd8a29c72d90f5eac;p=adns.git diff --git a/client/adnstest.c b/client/adnstest.c index 178bda5..e99f5a1 100644 --- a/client/adnstest.c +++ b/client/adnstest.c @@ -4,11 +4,11 @@ */ /* * This file is - * Copyright (C) 1997-1999 Ian Jackson + * Copyright (C) 1997-2000 Ian Jackson * * It is part of adns, which is * Copyright (C) 1997-2000 Ian Jackson - * Copyright (C) 1999 Tony Finch + * Copyright (C) 1999-2000 Tony Finch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,12 +33,11 @@ #include #include -#include "adns.h" - #include "config.h" +#include "adns.h" -#ifndef OUTPUTSTREAM -# define OUTPUTSTREAM stdout +#ifdef ADNS_REGRESS_TEST +# include "hredirect.h" #endif struct myctx { @@ -220,6 +219,8 @@ int main(int argc, char *const *argv) { mcs= malloc(tc ? sizeof(*mcs)*qc*tc : 1); if (!mcs) { perror("malloc mcs"); quitnow(3); } + setvbuf(stdout,0,_IOLBF,0); + if (initstring) { r= adns_init_strcfg(&ads, (adns_if_debug|adns_if_noautosys|adns_if_checkc_freq) @@ -232,8 +233,6 @@ int main(int argc, char *const *argv) { } if (r) failure_errno("init",r); - setvbuf(stdout,0,_IOLBF,0); - for (qi=0; qi