]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
testbound sets timezone for test
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Jul 2010 10:12:43 +0000 (10:12 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Jul 2010 10:12:43 +0000 (10:12 +0000)
git-svn-id: file:///svn/unbound/trunk@2184 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/testbound.c

index 18e0d98b8c46777893fc4f828b019cdd3d9e9440..8c71adf2af643d9cecca569b37a0ebb8094e0108 100644 (file)
@@ -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 */