From: Wouter Wijngaards Date: Tue, 6 Jul 2010 10:12:43 +0000 (+0000) Subject: testbound sets timezone for test X-Git-Tag: release-1.4.6rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c188d259d62ec7dd4b953c422488095cfc6fa623;p=thirdparty%2Funbound.git testbound sets timezone for test git-svn-id: file:///svn/unbound/trunk@2184 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/testbound.c b/testcode/testbound.c index 18e0d98b8..8c71adf2a 100644 --- a/testcode/testbound.c +++ b/testcode/testbound.c @@ -263,6 +263,9 @@ main(int argc, char* argv[]) char* init_optarg = optarg; struct replay_scenario* scen = NULL; + /* we do not want the test to depend on the timezone */ + setenv("TZ", "GMT-1", 1); + log_init(NULL, 0, NULL); log_info("Start of %s testbound program.", PACKAGE_STRING); /* determine commandline options for the daemon */