1 |
diff --git a/lib/dns/tests/dnstap_test.c b/lib/dns/tests/dnstap_test.c |
2 |
index 56e3da4..1f31542 100644 |
3 |
--- a/lib/dns/tests/dnstap_test.c |
4 |
+++ b/lib/dns/tests/dnstap_test.c |
5 |
@@ -297,6 +297,9 @@ ATF_TC_BODY(totext, tc) { |
6 |
|
7 |
UNUSED(tc); |
8 |
|
9 |
+ /* make sure text conversion gets the right local time */ |
10 |
+ setenv("TZ", "PST8", 1); |
11 |
+ |
12 |
result = dns_test_begin(NULL, true); |
13 |
ATF_REQUIRE(result == ISC_R_SUCCESS); |
14 |
|
15 |
@@ -306,9 +309,6 @@ ATF_TC_BODY(totext, tc) { |
16 |
result = isc_stdio_open(TAPTEXT, "r", &fp); |
17 |
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS); |
18 |
|
19 |
- /* make sure text conversion gets the right local time */ |
20 |
- setenv("TZ", "PST8", 1); |
21 |
- |
22 |
while (dns_dt_getframe(handle, &data, &dsize) == ISC_R_SUCCESS) { |
23 |
dns_dtdata_t *dtdata = NULL; |
24 |
isc_buffer_t *b = NULL; |