From 53c1c9b767096340a34387536b066d62ea5f40d8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 11 Apr 2017 00:16:05 +0200 Subject: t2_parsing: Ensure the timezone is reset after modifying TZ Signed-off-by: Florian Pritz --- t/02_parsing.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/02_parsing.t b/t/02_parsing.t index 743ccd7..407dfd9 100644 --- a/t/02_parsing.t +++ b/t/02_parsing.t @@ -1,9 +1,10 @@ use strict; use warnings; -use Test::More; -use Test::MockObject; +use POSIX qw(tzset); use Test::Differences; +use Test::MockObject; +use Test::More; use App::BorgRestore; @@ -14,6 +15,7 @@ $db->mock('-get_archive_id', sub {return 'prefix-archive-1' if $_[1] eq 'archive $db->mock('-get_archive_names', sub {return []}); $ENV{TZ} = 'UTC'; +tzset; my $borg = Test::MockObject->new(); $borg->set_list('borg_list', ['archive-1']); -- cgit v1.2.3-24-g4f1b