]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Initalize TZ environment variable before calling dns_test_begin in dnstap_test.
authorMark Andrews <marka@isc.org>
Mon, 29 Oct 2018 05:15:52 +0000 (16:15 +1100)
committerMark Andrews <marka@isc.org>
Mon, 29 Oct 2018 05:15:52 +0000 (16:15 +1100)
CHANGES
lib/dns/tests/dnstap_test.c

diff --git a/CHANGES b/CHANGES
index f887d92dd4a87700c5315e759b0c8fcb7d04dd15..24b52236912caeb1a7ec185f19fa63c2e40ce3b6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
-5063.  [test]          In statschannel test try a few times before failing when
-                       checking if the compressed output is the same as
+5064.  [test]          Initalize TZ environment variable before calling
+                       dns_test_begin in dnstap_test. [GL #624]
+
+5063.  [test]          In statschannel test try a few times before failing
+                       when checking if the compressed output is the same as
                        uncompressed. [GL !909]
 
 5062.  [func]          Use non-crypto-secure PRNG to generate nonces for
index 96fe28a20f71453a549603e2eff8e8936130960c..3da5117f79757910c56267ff676444bc46d0aed7 100644 (file)
@@ -297,6 +297,9 @@ ATF_TC_BODY(totext, tc) {
 
        UNUSED(tc);
 
+       /* make sure text conversion gets the right local time */
+       setenv("TZ", "PST8", 1);
+
        result = dns_test_begin(NULL, true);
        ATF_REQUIRE(result == ISC_R_SUCCESS);
 
@@ -306,9 +309,6 @@ ATF_TC_BODY(totext, tc) {
        result = isc_stdio_open(TAPTEXT, "r", &fp);
        ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
 
-       /* make sure text conversion gets the right local time */
-       setenv("TZ", "PST8", 1);
-
        while (dns_dt_getframe(handle, &data, &dsize) == ISC_R_SUCCESS) {
                dns_dtdata_t *dtdata = NULL;
                isc_buffer_t *b = NULL;